<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>


<link href="${basePath}/static/css/bianAn_manage/bianAn_manage.css"
	rel="stylesheet" type="text/css">
<link href="${basePath}/static/css/suggest.css" rel="stylesheet"
	type="text/css">
<link
	href="${basePath}/static/publics/assets/bootstrap/css/bootstrap-multiselect.css"
	rel="stylesheet" type="text/css">
<script type="text/javascript" src="${basePath}/static/publics/assets/Koala/koala.min.1.5.js"></script>
<script type="text/javascript" src="${basePath}/static/publics/assets/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${basePath}/static/js/stddisease.js"></script>
<script type="text/javascript"
	src="${basePath}/static/js/stdoperation.js"></script>
<script type="text/javascript" src="${basePath}/static/js/doctor.js"></script>
<script type="text/javascript"
	src="${basePath}/static/js/consultation_subject.js"></script>
<script type="text/javascript"
	src="${basePath}/static/js/stdobstetricalrecord.js"></script>
<script type="text/javascript"
	src="${basePath}/static/publics/assets/bianAn_manage/bianAn_manage.js"></script>
<script type="text/javascript"
	src="${basePath}/static/publics/assets/bootstrap/js/bootstrap-multiselect.js"></script>

<style>
.input_list {
	border: 2px red solid !important;
}
</style>
<div id="div_TC">
	<input type="hidden" id="basePath" value="${basePath}" />
	<div class="TC_title">
		<h3>标题</h3>
		<ul style='width:90px;'>
			<!--   <li><a href="Modify_PigeonholeList.html" id="closeBtn2">返回</a></li> -->
		</ul>
	</div>
	<div class="TC_menu">
		<h3>病案首页管理</h3>
		<ul role="tablist">
			<li role="presentation" class="TC_li active"><a href="#baseInfo"
				aria-controls="baseInfo" role="tab" data-toggle="tab">基本数据</a>
			</li>
			<li role="presentation" class="TC_li"><a href="#treatMentInfo"
				aria-controls="treatMentInfo" role="tab" data-toggle="tab">治疗信息</a>
			</li>
			<li role="presentation" class="TC_li"><a href="#diseaseDiagnos"
				aria-controls="diseaseDiagnos" role="tab" data-toggle="tab">疾病诊断</a>
			</li>
			<li role="presentation" class="TC_li"><a href="#operationInfo"
				aria-controls="operationInfo" role="tab" data-toggle="tab">手术操作</a>
			</li>
			<li role="presentation" class="TC_li"><a href="#bloodTransfuse"
				aria-controls="bloodTransfuse" role="tab" data-toggle="tab">输血记录</a>
			</li>
			<li role="presentation" class="TC_li"><a href="#transferNote"
				aria-controls="transferNote" role="tab" data-toggle="tab">转科记录</a>
			</li>
			<li role="presentation" class="TC_li"><a href="#allergyDrug"
				aria-controls="allergyDrug" role="tab" data-toggle="tab">过敏药物</a>
			</li>
			<li role="presentation" class="TC_li"><a href="#IC"
				aria-controls="IC" role="tab" data-toggle="tab">重症监护</a>
			</li>
			<li role="presentation" class="TC_li"><a href="#nursesNote"
				aria-controls="nursesNote" role="tab" data-toggle="tab">护理记录</a>
			</li>
			<li role="presentation" class="TC_li"><a
				href="#PressureUlcerRecord" aria-controls="PressureUlcerRecord"
				role="tab" data-toggle="tab">压疮记录</a>
			</li>
			
			<li role="presentation" class="TC_li"><a
				href="#obstetricalRecord" aria-controls="obstetricalRecord"
				role="tab" data-toggle="tab">产科记录</a>
			</li>
			<li role="presentation" class="TC_li"><a href="#antibacterial"
				aria-controls="antibacterial" role="tab" data-toggle="tab">抗菌药物</a>
			</li>
			<li role="presentation" class="TC_li"><a
				href="#hospitalInfection" aria-controls="hospitalInfection"
				role="tab" data-toggle="tab">医院感染</a>
			</li>
			
			<li role="presentation" class="TC_li"><a href="#hospitalCharge"
				aria-controls="hospitalCharge" role="tab" data-toggle="tab">住院费用</a>
			</li>
		</ul>
	</div>
	<div class="content_list">
		<div class="tab-content">
			<!--基本数据-->
			<div role="tabpanel" class="tab-pane active" id="baseInfo">
				<form action="${basePath}/medrecord/medrecordHomePageManageOfBasic"
					method="post" id="basicDataForm">
					<input type="hidden" name="firstGuid"
						value="${hospitalizationNote.first_level_medical_guid}">
					<table style="width:100%;" cellpadding="0" cellspacing="0">
						<tbody>
							<tr>
								<!-- <td colspan="6"><input type="submit" value="保存" class="btn"></td> -->
								<td colspan="6"><input type="button" value="保存" class="btn"
									onclick="basicDataSave()">
								</td>
								<script>
                        		function basicDataSave(){
                        			$("[title='']").focus(function() { 
                              			$("[title='']").each(function() {
                              		  		$("[title='']").removeClass("input_list");
                              		  		
                              			});
                              	 	});
                        			var num=0;//变量为1时 数据为空
                   
                            		var notNull=false;//变量为true时提交数据
                            		$("[title='']").each(function() { //遍历元素对象   
                                      if ($(this).val()=="") { //判断元素对象的value值  
                                            $(this).addClass("input_list");  //添加css样式  
                                          num=1;
                                      }else{  
                                    	  notNull=true;
                                      }  
                            	
                                    }); 
                            	    if(num==1){
                            		 	  alert("必选项不能为空!");
                            			  notNull=false;
                            			  return;
                            		}
                            		if(notNull==true){
	                        			var age=$("#age").val();
	                        			if(age!=null && age!=''){
	                        				if(age<1 || age>150){
	                        					alert("年龄范围不能小于0,或者大于150岁");
	                        					return;
	                        				}
	                        			}
                            		}
                        			$("#basicDataForm").submit();
                        		
                        		}
                        	</script>

								<!-- <td colspan="6"><input type="submit" value="保存" class="btn"> -->

								<input type="button" value="打印" id="print" class="btn"></td>

							</tr>
							<tr>
								<td class="tdLabel_7 redColor">病案号</td>
								<td class="tdLabel_8"><c:choose>
										<c:when test="${noteBasic==null}">
											<input type="text" name="onlyId"
												value="${hospitalizationNote.only_id }" id="onlyId" title='' />
										</c:when>
										<c:otherwise>
											<input type="text" name="onlyId" value="${noteBasic.onlyId }"
												id="onlyId" title='' />
										</c:otherwise>
									</c:choose></td>

								<td class="tdLabel_7 redColor">ID号</td>
								<td class="tdLabel_8"><c:choose>
										<c:when test="${noteBasic==null}">
											<input type="text" name="mrId"
												value="${hospitalizationNote.mr_id}" title='' />
										</c:when>
										<c:otherwise>
											<input type="text" name="mrId" value="${noteBasic.mrId}"
												title='' />
										</c:otherwise>
									</c:choose></td>
								<td class="tdLabel_7 redColor">分支医院</td>
								<td class="tdLabel_8"><c:choose>
										<c:when test="${noteBasic==null}">
											<input type="text" name="hospitalName" readonly="readonly"
												value="${hospitalizationNote.hospital_name}" title='' />
											<input type="hidden" name="hospitalId"
												value="${hospitalizationNote.hospital_id}" />
										</c:when>
										<c:otherwise>
											<input type="text" name="hospitalName" readonly="readonly"
												value="${noteBasic.hospitalName}" title='' />
											<input type="hidden" name="hospitalId"
												value="${noteBasic.hospitalId}" />
										</c:otherwise>
									</c:choose></td>
							</tr>
							<tr>
								<td class="tdLabel_7">健康卡号</td>
								<td class="tdLabel_8"><input name="healthCards" type="text"
									value="${noteBasic.healthCards}" />
								</td>
								<td class="tdLabel_7 redColor">付费方式</td>
								<td class="tdLabel_8"><select name="payTypeId"
									id="payTypeId" title=''>
										<option value="">----请选择----</option>
										<c:forEach var="payType"
											items="${basicInfos['medicalPayTypeList']}">
											<c:choose>
												<c:when test="${noteBasic.payTypeId == payType.id}">
													<option selected="selected" value="${payType.id }">${payType.name
														}</option>
												</c:when>
												<c:otherwise>
													<option value="${payType.id }">${payType.name }</option>
												</c:otherwise>
											</c:choose>

										</c:forEach>
								</select> <input type="hidden" id="payTypeName" name="payTypeName"
									value="${noteBasic.payTypeName}" /></td>
								<td class="tdLabel_7 redColor">住院次数</td>
								<td class="tdLabel_8"><input type="text"
									name="inHospitalNumber" value="${noteBasic.inHospitalNumber}"
									title='' /></td>
							</tr>
							<tr>
								<td class="tdLabel_7 redColor">姓名</td>
								<td class="tdLabel_8"><c:choose>
										<c:when test="${noteBasic==null}">
											<input type="text" name="name"
												value="${hospitalizationNote.name }" title='' />
										</c:when>
										<c:otherwise>
											<input type="text" name="name" value="${noteBasic.name }"
												title='' />
										</c:otherwise>
									</c:choose></td>
								<td class="tdLabel_7">证件类型</td>
								<td class="tdLabel_8"><select name="identityDocumentTypeId">
										<option value="">----请选择----</option>
										<c:forEach var="idCardType"
											items="${basicInfos['identityDocumentTypeList']}">
											<c:choose>
												<c:when test="${noteBasic==null}">
													<c:choose>
														<c:when
															test="${idCardType.id == hospitalizationNote.idtypeId}">
															<option selected="selected" value="${idCardType.id }">${idCardType.name
																}</option>
														</c:when>
														<c:otherwise>
															<option value="${idCardType.id }">${idCardType.name
																}</option>
														</c:otherwise>
													</c:choose>

												</c:when>
												<c:otherwise>
													<c:choose>
														<c:when
															test="${idCardType.id == noteBasic.identityDocumentTypeId}">
															<option selected="selected" value="${idCardType.id }">${idCardType.name
																}</option>
														</c:when>
														<c:otherwise>
															<option value="${idCardType.id }">${idCardType.name
																}</option>
														</c:otherwise>
													</c:choose>

												</c:otherwise>
											</c:choose>

										</c:forEach>
								</select> <c:choose>
										<c:when test="${noteBasic==null}">
											<input type="hidden" id="identityDocumentTypeName"
												name="identityDocumentTypeName"
												value="${hospitalizationNote.identityDocumentTypeName}" />
										</c:when>
										<c:otherwise>
											<input type="hidden" id="identityDocumentTypeName"
												name="identityDocumentTypeName"
												value="${noteBasic.identityDocumentTypeName}" />
										</c:otherwise>
									</c:choose></td>
								<td class="tdLabel_7">证件号</td>
								<td class="tdLabel_8"><c:choose>
										<c:when test="${noteBasic==null}">
											<input type="text" name="idNumber"
												value="${hospitalizationNote.id_number }" />
										</c:when>
										<c:otherwise>
											<input type="text" name="idNumber"
												value="${noteBasic.idNumber }" />
										</c:otherwise>
									</c:choose></td>
							</tr>
							<tr>
								<td class="tdLabel_7 redColor">性别</td>
								<td class="tdLabel_8"><select name="sexId" title=''>
										<option value="">----请选择----</option>
										<c:if test="${not empty basicInfos['sexes']}">
											<c:forEach var="sex" items="${basicInfos['sexes']}">
												<c:choose>
													<c:when test="${noteBasic==null}">
														<c:choose>
															<c:when test="${sex.id == hospitalizationNote.sex_id}">
																<option selected="selected" value="${sex.id }">${sex.name
																	}</option>
															</c:when>
															<c:otherwise>
																<option value="${sex.id }">${sex.name }</option>
															</c:otherwise>
														</c:choose>
													</c:when>
													<c:otherwise>
														<c:choose>
															<c:when test="${sex.id == noteBasic.sexId}">
																<option selected="selected" value="${sex.id }">${sex.name
																	}</option>
															</c:when>
															<c:otherwise>
																<option value="${sex.id }">${sex.name }</option>
															</c:otherwise>
														</c:choose>
													</c:otherwise>

												</c:choose>

											</c:forEach>
										</c:if>
								</select> <c:choose>
										<c:when test="${noteBasic==null}">
											<input type="hidden" id="sexName" name="sexName"
												value="${hospitalizationNote.sexName}" />
										</c:when>
										<c:otherwise>
											<input type="hidden" id="sexName" name="sexName"
												value="${noteBasic.sexName}" />
										</c:otherwise>
									</c:choose></td>
								<td class="tdLabel_7">出生日期</td>
								<c:choose>
									<c:when test="${noteBasic==null}">
										<fmt:formatDate var="birthday"
											value="${hospitalizationNote.birthday}" pattern="yyyy-MM-dd" />
									</c:when>
									<c:otherwise>
										<fmt:formatDate var="birthday" value="${noteBasic.birthday}"
											pattern="yyyy-MM-dd" />
									</c:otherwise>
								</c:choose>
								<td class="tdLabel_8"><input type="text"
									onFocus="WdatePicker()" name="birthday" value="${birthday}" />
								</td>
								<td class="tdLabel_7">年龄</td>
								<td class="tdLabel_8"><input type="text" id="age"
									name="age" value="${noteBasic.age}" /></td>
							</tr>
							<tr>
								<td class="tdLabel_7 redColor">国籍</td>
								<td class="tdLabel_8"><select name="nationalityId" title=''>
										<option value="">----请选择----</option>
										<c:forEach var="country" items="${basicInfos['countryList']}">
											<c:choose>
												<c:when test="${country.id == noteBasic.nationalityId}">
													<option selected="selected" value="${country.id }">${country.name
														}</option>
												</c:when>
												<c:otherwise>
													<option value="${country.id }">${country.name }</option>
												</c:otherwise>
											</c:choose>
										</c:forEach>
								</select> <input type="hidden" id="nationalityName"
									name="nationalityName" value="${noteBasic.nationalityName}" />
								</td>
								<td class="tdLabel_7">籍贯</td>
								<td class="tdLabel_8"><input type="text" name="nativePlace"
									value="${noteBasic.nativePlace }" /></td>
								<td class="tdLabel_7">民族</td>
								<td class="tdLabel_8"><select name="nationId">
										<option value="">----请选择----</option>
										<c:forEach var="nation" items="${basicInfos['nationList']}">
											<c:choose>
												<c:when test="${nation.id == noteBasic.nationId}">
													<option selected="selected" value="${nation.id }">${nation.name
														}</option>
												</c:when>
												<c:otherwise>
													<option value="${nation.id }">${nation.name }</option>
												</c:otherwise>
											</c:choose>

										</c:forEach>
								</select> <input type="hidden" id="nationName" name="nationName"
									value="${noteBasic.nationName}" /></td>
							</tr>
							<tr>
								<td class="tdLabel_7">出生地</td>
								<td class="tdLabel_8"><input type="text"
									name="birthAddress" value="${noteBasic.birthAddress}" /></td>
								<td class="tdLabel_7 redColor">职业</td>
								<td class="tdLabel_8"><select name="professionId" title=''>
										<option value="">---请选择---</option>
										<c:if test="${not empty basicInfos['professionList']}">
											<c:forEach var="profession"
												items="${basicInfos['professionList']}">
												<c:choose>
													<c:when test="${profession.id == noteBasic.professionId}">
														<option selected="selected" value="${profession.id }">${profession.name
															}</option>
													</c:when>
													<c:otherwise>
														<option value="${profession.id }">${profession.name
															}</option>
													</c:otherwise>
												</c:choose>
											</c:forEach>
										</c:if>
								</select> <input type="hidden" id="professionName" name="professionName"
									value="${noteBasic.professionName}" /></td>
								<td class="tdLabel_7 redColor">婚姻</td>
								<td class="tdLabel_8"><select name="marriageId" title=''>
										<option value="">---请选择---</option>
										<c:if test="${not empty basicInfos['marriages']}">
											<c:forEach var="marriage" items="${basicInfos['marriages']}">
												<c:choose>
													<c:when test="${marriage.id == noteBasic.marriageId}">
														<option selected="selected" value="${marriage.id }">${marriage.name
															}</option>
													</c:when>
													<c:otherwise>
														<option value="${marriage.id }">${marriage.name }</option>
													</c:otherwise>
												</c:choose>
											</c:forEach>
										</c:if>
								</select> <input type="hidden" id="marriageName" name="marriageName"
									value="${noteBasic.marriageName}" /></td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7" rowspan="2">现住地</td>

								<td class="tdLabel_8" colspan="5">地址 <c:choose>
										<c:when test="${noteBasic==null}">
											<input type="text" name="familyAddress" style="width: 500px"
												value="${hospitalizationNote.address_no}">
										</c:when>
										<c:otherwise>
											<input type="text" name="familyAddress" style="width: 500px"
												value="${noteBasic.familyAddress}">
										</c:otherwise>
									</c:choose></td>
							</tr>
							<tr>
								<td class="tdLabel_8" align="left">电话 <input type="text"
									name="phone" style="width:170px" value="${noteBasic.phone}">
								</td>
								<td align="left" class="tdLabel_7">移动电话</td>
								<td class="tdLabel_8"><input type="text" name="mobilePhone"
									style="width:150px" value="${noteBasic.mobilePhone}">
								</td>
								<td align="left" class="tdLabel_7">邮编</td>
								<td class="tdLabel_8" align="left"><input type="text"
									name="familyPostCode" style="width:150px"
									value="${noteBasic.familyPostCode}">
								</td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7" rowspan="2">工作单位</td>
								<td class="tdLabel_8" align="left" colspan="5">地址： <input
									type="text" name="workPlace" style="width: 500px"
									value="${noteBasic.workPlace}">
								</td>

							</tr>
							<tr>
								<td class="tdLabel_8" align="left">单位名：<input type="text"
									name="workUnit" value="${noteBasic.workUnit}">
								</td>
								<td align="left" class="tdLabel_7">电话</td>
								<td class="tdLabel_8" align="left"><input type="text"
									name="workUnitPhone" value="${noteBasic.workUnitPhone}">
								</td>
								<td align="left" class="tdLabel_7">邮编</td>
								<td class="tdLabel_8" align="left"><input type="text"
									name="workPostCode" value="${noteBasic.workPostCode}">
								</td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7" rowspan="2">联系人</td>
								<td align="left" class="tdLabel_8">姓名 <input type="text"
									name="linkManName" style="width: 150px"
									value="${noteBasic.linkManName}">
								</td>
								<td class="tdLabel_8" align="left" colspan="4">地址： <input
									type="text" name="linkManAddress" style="width: 500px"
									value="${noteBasic.linkManAddress}">
								</td>

							</tr>
							<tr>
								<td align="left" class="tdLabel_8">病人关系</td>
								<td align="left" class="tdLabel_8" colspan="2">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select style="width:180px"
									name="relativeRelationId" id="relationId">
										<option value="">----请选择----</option>
										<c:forEach var="relation"
											items="${basicInfos['relationList']}">
											<option value="${relation.id }"
												<c:if test="${relation.id==noteBasic.relativeRelationId}">selected="selected"</c:if>>${relation.name
												}</option>
										</c:forEach>
								</select> <input type="hidden" id="relativeRelationName"
									name="relativeRelationName"
									value="${noteBasic.relativeRelationName}" /></td>

								<td align="left" class="tdLabel_7">电话</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="linkManPhone" style="width: 150px"
									value="${noteBasic.linkManPhone}">
								</td>
							</tr>

							<tr>
								<td align="left" class="tdLabel_7">接诊日期</td>
								<td align="left" class="tdLabel_8"><fmt:formatDate
										var="clinicalReceptionDate"
										value="${noteBasic.clinicalReceptionDate}"
										pattern="yyyy-MM-dd" /> <input type="text"
									onFocus="WdatePicker()" name="clinicalReceptionDate"
									value="${clinicalReceptionDate}" /></td>

								<td align="left" class="tdLabel_7">门诊医生</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="outpatientOfDoctorName"
									id="doctorFormControl-outpatientOfDoctor"
									value="${noteBasic.outpatientOfDoctorName}">
									<div></div>
									<div id="outpatientOfDoctorDiv"></div> <input type="hidden"
									id="outpatientOfDoctorId" name="outpatientOfDoctorId"
									readonly="readonly" value="${noteBasic.outpatientOfDoctorId }" />

								</td>

								<td align="left" class="tdLabel_7">经办人</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="responsiblePersonName"
									id="doctorFormControl-responsiblePerson"
									value="${noteBasic.responsiblePersonName}">
									<div></div>
									<div id="responsiblePersonDiv"></div> <input type="hidden"
									id="responsiblePersonId" name="responsiblePersonId"
									readonly="readonly" value="${noteBasic.responsiblePersonId }" />

								</td>
							</tr>

							<tr>
								<td align="left" class="tdLabel_7 redColor">入院途径</td>

								<td align="left" class="tdLabel_8"><select
									style="width:180px" name="inHospitalTypeId" title=''>
										<option value="">----请选择----</option>
										<c:forEach var="inHospital"
											items="${basicInfos['inHospitalList']}">
											<c:choose>
												<c:when test="${noteBasic==null}">
													<c:choose>
														<c:when
															test="${inHospital.id == hospitalizationNote.in_hospital_type_id}">
															<option selected="selected" value="${inHospital.id }">${inHospital.name
																}</option>
														</c:when>
														<c:otherwise>
															<option value="${inHospital.id }">${inHospital.name
																}</option>
														</c:otherwise>
													</c:choose>
												</c:when>
												<c:otherwise>
													<c:choose>
														<c:when
															test="${inHospital.id == noteBasic.inHospitalTypeId}">
															<option selected="selected" value="${inHospital.id }">${inHospital.name
																}</option>
														</c:when>
														<c:otherwise>
															<option value="${inHospital.id }">${inHospital.name
																}</option>
														</c:otherwise>
													</c:choose>
												</c:otherwise>
											</c:choose>
										</c:forEach>
								</select> <c:choose>
										<c:when test="${noteBasic==null}">
											<input type="hidden" id="inHospitalTypeName"
												name="inHospitalTypeName"
												value="${hospitalizationNote.inHospitalTypeName}" />
										</c:when>
										<c:otherwise>
											<input type="hidden" id="inHospitalTypeName"
												name="inHospitalTypeName"
												value="${noteBasic.inHospitalTypeName}" />
										</c:otherwise>
									</c:choose></td>
								<td class="tdLabel_7">转入机构</td>
								<td colspan="3"><input type="hidden"
									id="shiftToUnitIdHidden" value="${noteBasic.shiftToUnitId}">
									<select style="width:180px" id="shiftToUnit"
									name="shiftToUnitId">
										<option value="">----请选择----</option>
										<c:forEach var="hospital" items="${basicInfos['hospitals']}">
											<option value="${hospital.id }">${hospital.name }</option>
										</c:forEach>
								</select> <input type="hidden" id="shiftToUnitNameHidden"
									name="shiftToUnitName" value="${noteBasic.shiftToUnitName}">
								</td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7">入院状况</td>
								<td align="left" class="tdLabel_8"><select
									name="inHospitalStateId" style="width:180px">
										<option value="">---请选择---</option>
										<c:forEach var="inHospitalState"
											items="${basicInfos['inHospitalStateList']}">
											<c:choose>
												<c:when
													test="${inHospitalState.id == noteBasic.inHospitalStateId}">
													<option selected="selected" value="${inHospitalState.id }">${inHospitalState.name
														}</option>
												</c:when>
												<c:otherwise>
													<option value="${inHospitalState.id }">${inHospitalState.name
														}</option>
												</c:otherwise>
											</c:choose>
										</c:forEach>
								</select> <input type="hidden" id="inHospitalStateName"
									name="inHospitalStateName"
									value="${noteBasic.inHospitalStateName}" /></td>

								<td align="left" class="tdLabel_7">颅脑损伤昏迷时间</td>
								<td align="left" class="tdLabel_8"><fmt:formatDate
										var="craniocerebralInjuryAndComaDateTime"
										value="${noteBasic.craniocerebralInjuryAndComaDateTime}"
										pattern="yyyy-MM-dd HH:mm:ss" /> <input type="text"
									name="craniocerebralInjuryAndComaDateTime"
									onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
									value="${craniocerebralInjuryAndComaDateTime }"></td>
								<td align="left" class="tdLabel_7">诊断确诊时间</td>
								<td align="left" class="tdLabel_8"><fmt:formatDate
										var="diagnosisConfirmedDate"
										value="${noteBasic.diagnosisConfirmedDate}"
										pattern="yyyy-MM-dd" /> <input type="text"
									name="diagnosisConfirmedDate"
									onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
									value="${diagnosisConfirmedDate }" style="width: 150px">
								</td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7 redColor">入院科室</td>

								<td align="left" class="tdLabel_8"><select name="inDeptId"
									style="width:180px" title=''>
										<option value="">---请选择---</option>
										<c:if test="${not empty basicInfos['offices']}">
											<c:forEach var="office" items="${basicInfos['offices']}">
												<c:choose>
													<c:when test="${noteBasic==null}">
														<c:choose>
															<c:when
																test="${office.id == hospitalizationNote.in_dept_id}">
																<option selected="selected" value="${office.id }">${office.name
																	}</option>
															</c:when>
															<c:otherwise>
																<option value="${office.id }">${office.name }</option>
															</c:otherwise>
														</c:choose>
													</c:when>
													<c:otherwise>
														<c:choose>
															<c:when test="${office.id == noteBasic.inDeptId}">
																<option selected="selected" value="${office.id }">${office.name
																	}</option>
															</c:when>
															<c:otherwise>
																<option value="${office.id }">${office.name }</option>
															</c:otherwise>

														</c:choose>
													</c:otherwise>
												</c:choose>
											</c:forEach>
										</c:if>
								</select> <c:choose>
										<c:when test="${noteBasic==null}">
											<input type="hidden" id="inDeptName" name="inDeptName"
												value="${hospitalizationNote.inDeptName}" />
										</c:when>
										<c:otherwise>
											<input type="hidden" id="inDeptName" name="inDeptName"
												value="${noteBasic.inDeptName}" />
										</c:otherwise>
									</c:choose></td>
								<td align="left" class="tdLabel_7 redColor">入院时间</td>
								<td align="left" class="tdLabel_8"><c:choose>
										<c:when test="${noteBasic==null}">
											<fmt:formatDate var="in_hospital_date"
												value="${hospitalizationNote.in_hospital_date}"
												pattern="yyyy-MM-dd HH:mm:ss" />
										</c:when>
										<c:otherwise>
											<fmt:formatDate var="in_hospital_date"
												value="${noteBasic.inHospitalDate}"
												pattern="yyyy-MM-dd HH:mm:ss" />
										</c:otherwise>
									</c:choose> <input type="text" name="inHospitalDate"
									onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
									value="${in_hospital_date }" title=''></td>

								<td align="left" class="tdLabel_7">诊疗科目</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="diagnosisSubjectName"
									id="diagnosisSubjectFormControl-diagnosisSubject"
									value="${noteBasic.diagnosisSubjectName}">
									<div></div>
									<div id="diagnosisSubjectDiv"></div> <input type="hidden"
									id="diagnosisSubjectId" name="diagnosisSubjectId"
									readonly="readonly" value="${noteBasic.diagnosisSubjectId}" />

								</td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7 redColor">出院科室</td>
								<td align="left" class="tdLabel_8"><select name="outDeptId"
									style="width:180px" title=''>
										<option value="">---请选择---</option>
										<c:if test="${not empty basicInfos['offices']}">
											<c:forEach var="office" items="${basicInfos['offices']}">
												<c:choose>
													<c:when test="${noteBasic==null}">
														<c:choose>
															<c:when
																test="${office.id == hospitalizationNote.out_dept_id}">
																<option selected="selected" value="${office.id }">${office.name
																	}</option>
															</c:when>
															<c:otherwise>
																<option value="${office.id }">${office.name }</option>
															</c:otherwise>
														</c:choose>
													</c:when>
													<c:otherwise>
														<c:choose>
															<c:when test="${office.id == noteBasic.outDeptId}">
																<option selected="selected" value="${office.id }">${office.name
																	}</option>
															</c:when>
															<c:otherwise>
																<option value="${office.id }">${office.name }</option>
															</c:otherwise>

														</c:choose>
													</c:otherwise>
												</c:choose>
											</c:forEach>
										</c:if>
								</select> <c:choose>
										<c:when test="${noteBasic==null}">
											<input type="hidden" id="outDeptName" name="outDeptName"
												value="${hospitalizationNote.outDeptName}" />
										</c:when>
										<c:otherwise>
											<input type="hidden" id="outDeptName" name="outDeptName"
												value="${noteBasic.outDeptName}" />
										</c:otherwise>
									</c:choose></td>
								<td align="left" class="tdLabel_7 redColor">出院时间</td>
								<td align="left" class="tdLabel_8"><c:choose>
										<c:when test="${noteBasic==null}">
											<fmt:formatDate var="out_hospital_date"
												value="${hospitalizationNote.out_hospital_date}"
												pattern="yyyy-MM-dd HH:mm:ss" />
										</c:when>
										<c:otherwise>
											<fmt:formatDate var="out_hospital_date"
												value="${noteBasic.outHospitalDate}"
												pattern="yyyy-MM-dd HH:mm:ss" />
										</c:otherwise>
									</c:choose> <input type="text" name="outHospitalDate"
									onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
									value="${out_hospital_date }" title=''></td>

							</tr>

							<tr>
								<td align="left" class="tdLabel_7 redColor">离院方式</td>
								<td align="left" class="tdLabel_8"><select
									name="outHospitalTypeId" style="width:180px" title="">
										<c:if test="${not empty basicInfos['offices']}">
											<option value="">---请选择---</option>
											<c:forEach var="outHospital"
												items="${basicInfos['outHospitalList']}">
												<c:choose>
													<c:when test="${noteBasic==null}">
														<c:choose>
															<c:when
																test="${outHospital.id == hospitalizationNote.out_hospital_type_id}">
																<option selected="selected" value="${outHospital.id }">${outHospital.name
																	}</option>
															</c:when>
															<c:otherwise>
																<option value="${outHospital.id }">${outHospital.name
																	}</option>
															</c:otherwise>
														</c:choose>
													</c:when>
													<c:otherwise>
														<c:choose>
															<c:when
																test="${outHospital.id == noteBasic.outHospitalTypeId}">
																<option selected="selected" value="${outHospital.id }">${outHospital.name
																	}</option>
															</c:when>
															<c:otherwise>
																<option value="${outHospital.id }">${outHospital.name
																	}</option>
															</c:otherwise>

														</c:choose>
													</c:otherwise>
												</c:choose>
											</c:forEach>
										</c:if>
								</select> <c:choose>
										<c:when test="${noteBasic==null}">
											<input type="hidden" id="outHospitalTypeName"
												name="outHospitalTypeName"
												value="${hospitalizationNote.outHospitalTypeName}" />
										</c:when>
										<c:otherwise>
											<input type="hidden" id="outHospitalTypeName"
												name="outHospitalTypeName"
												value="${noteBasic.outHospitalTypeName}" />
										</c:otherwise>
									</c:choose></td>
								<td class="tdLabel_7">拟接收机构</td>
								<td align="left" class="tdLabel_8" colspan="3"><input
									type="hidden" id="rollOutUnitIdHidden"
									value="${noteBasic.rollOutUnitId}"> <select
									style="width:180px" id="rollOutUnit" name="rollOutUnitId">
										<option value="">----请选择----</option>
										<c:forEach var="hospital" items="${basicInfos['hospitals']}">
											<option value="${hospital.id }">${hospital.name }</option>
										</c:forEach>
								</select> <input type="hidden" id="rollOutUnitNameHidden"
									name="rollOutUnitName" value="${noteBasic.rollOutUnitName}">
								</td>

							</tr>
							<tr>
								<td align="left" class="tdLabel_7">再住院计划</td>
								<td align="left" class="tdLabel_8"><input type="hidden"
									id="rehospitalizationAimIdHidden"
									value="${noteBasic.rehospitalizationAimId}"> <select
									style="width:100px" id="rehospitalizationAim"
									name="rehospitalizationAimId">
										<option value="">----请选择----</option>
										<c:forEach var="rehospitalization"
											items="${basicInfos['rehospitalizationAims']}">
											<option value="${rehospitalization.id }">${rehospitalization.name
												}</option>
										</c:forEach>
								</select> <input type="hidden" id="rehospitalizationAimNameHidden"
									name="rehospitalizationAimName"
									value="${noteBasic.rehospitalizationAimName}"> 间隔 <input
									type="text" style="width:30px"
									name="rehospitalizationIntervalDay"
									value="${noteBasic.rehospitalizationIntervalDay}"> 天</td>
								<td align="left" class="tdLabel_7">死亡原因</td>
								<td align="left" class="tdLabel_8"><select
									style="width:180px" name="dealthReasonId">
										<option value="">---请选择---</option>
										<c:forEach var="deathReason"
											items="${basicInfos['deathReasonList']}">
											<c:choose>
												<c:when test="${deathReason.id == noteBasic.dealthReasonId}">
													<option selected="selected" value="${deathReason.id }">${deathReason.name
														}</option>
												</c:when>
												<c:otherwise>
													<option value="${deathReason.id }">${deathReason.name
														}</option>
												</c:otherwise>
											</c:choose>
										</c:forEach>
								</select> <input type="hidden" id="dealthReasonName"
									name="dealthReasonName" value="${noteBasic.dealthReasonName}" />
								</td>
								<td align="left" class="tdLabel_7">尸检</td>
								<td class="tdLabel_8" align="left" colspan="3"><c:choose>
										<c:when test="${noteBasic.autopsy == true}">
											<input type="radio" name="autopsy" value="true"
												checked="checked">
                            			 	是
                                		<input type="radio" name="autopsy"
												value="false">
                            			             否
                            		</c:when>
										<c:otherwise>
											<input type="radio" name="autopsy" value="true">
                            			 	是
                                		<input type="radio" name="autopsy"
												value="false" checked="checked">
                            			             否
                            		</c:otherwise>
									</c:choose></td>
							</tr>

						</tbody>
					</table>
				</form>
			</div>
			<!--治疗信息-->
			<div role="tabpanel" class="tab-pane" id="treatMentInfo">
				<form
					action="${basePath}/medrecord/medrecordHomePageManageOfCureInfo"
					method="post">
					<input type="hidden" name="firstGuid"
						value="${hospitalizationNote.first_level_medical_guid}">

					<table width="100%" cellspacing="0" cellpadding="0">
						<tbody>
							<tr>
								<td colspan="6"><input type="submit" value="保存" class="btn">
								</td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7" width="14%">病危告知</td>
								<td align="left" class="tdLabel_8"><input type="radio"
									class="radio_cl" name="criticallyInform"
									<c:if test="${true==hospitalizationCureInfo.criticallyInform }">checked="checked"</c:if>
									value="true"> 是 <input type="radio" class="radio_cl"
									name="criticallyInform"
									<c:if test="${false==hospitalizationCureInfo.criticallyInform }">checked="checked"</c:if>
									value="false"> 否</td>
								<td align="left" class="tdLabel_7">抢救次数</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="rescueNumber"
									value="${hospitalizationCureInfo.rescueNumber }">
								</td>
								<td align="left" class="tdLabel_7">抢救成功次数</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="rescueSucceedNumber"
									value="${hospitalizationCureInfo.rescueSucceedNumber }">
								</td>

							</tr>
							<tr>
								<td align="left" class="tdLabel_7">院内会诊数</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="inConsultationNumber"
									value="${hospitalizationCureInfo.inConsultationNumber }">
								</td>

								<td align="left" class="tdLabel_7">外院会诊数</td>
								<td align="left" colspan="3" class="tdLabel_8"><input
									type="text" name="outConsultationNumber"
									value="${hospitalizationCureInfo.outConsultationNumber }">
								</td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7">ABO血型</td>
								<td align="left" class="tdLabel_8"><select
									name="bloodTypeId">
										<option value="">==请选择==</option>
										<c:forEach var="bloodType"
											items="${basicInfos['bloodTypeList']}">
											<c:choose>
												<c:when
													test="${bloodType.id == hospitalizationCureInfo.bloodTypeId}">
													<option selected="selected" value="${bloodType.id }">${bloodType.name
														}</option>
												</c:when>
												<c:otherwise>
													<option value="${bloodType.id }">${bloodType.name
														}</option>
												</c:otherwise>
											</c:choose>
										</c:forEach>
								</select> <input type="hidden" name="bloodTypeName"
									value="${hospitalizationCureInfo.bloodTypeName}" /></td>
								<td align="left" class="tdLabel_7">RH血型</td>
								<td align="left" colspan="3" class="tdLabel_8"><select
									name="rhBloodTypeId">
										<option value="">==请选择==</option>
										<c:forEach var="RHbloodType"
											items="${basicInfos['rhBloodTypeList']}">
											<c:choose>
												<c:when
													test="${RHbloodType.id == hospitalizationCureInfo.rhBloodTypeId}">
													<option selected="selected" value="${RHbloodType.id }">${RHbloodType.name
														}</option>
												</c:when>
												<c:otherwise>
													<option value="${RHbloodType.id }">${RHbloodType.name
														}</option>
												</c:otherwise>
											</c:choose>
										</c:forEach>
								</select> <input type="hidden" name="rhBloodTypeName"
									value="${hospitalizationCureInfo.rhBloodTypeName}" /></td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7">疑难病例</td>
								<td align="left" class="tdLabel_8"><input type="radio"
									class="radio_cl" name="intractableCaseNumber" value="1"
									<c:if test='${1 == hospitalizationCureInfo.intractableCaseNumber}'>checked="checked"</c:if> />是

									<input type="radio" class="radio_cl"
									name="intractableCaseNumber" value="0"
									<c:if test='${0 == hospitalizationCureInfo.intractableCaseNumber}'>checked="checked"</c:if> />否
								</td>
								<td align="left" class="tdLabel_7">输液</td>
								<td align="left" class="tdLabel_8"><input type="radio"
									class="radio_cl" name="venousTransfusion" value="1"
									<c:if test='${1 == hospitalizationCureInfo.venousTransfusion}'>checked="checked"</c:if> />
									是 <input type="radio" class="radio_cl" name="venousTransfusion"
									value="0"
									<c:if test='${0 == hospitalizationCureInfo.venousTransfusion}'>checked="checked"</c:if> />
									否</td>

								<td align="left" class="tdLabel_7">输液反应</td>
								<td align="left" class="tdLabel_8"><input type="radio"
									class="radio_cl" name="infusionReaction" value="1"
									<c:if test='${1 == hospitalizationCureInfo.infusionReaction}'>checked="checked"</c:if> />
									是 <input type="radio" class="radio_cl" name="infusionReaction"
									value="0"
									<c:if test='${0 == hospitalizationCureInfo.infusionReaction}'>checked="checked"</c:if> />
									否</td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7">随诊</td>
								<td align="left" class="tdLabel_8"><input type="radio"
									class="radio_cl" name="followUpClinicLimit" value="true"
									<c:if test='${true == hospitalizationCureInfo.followUpClinicLimit}'>checked="checked"</c:if> />
									是 <input type="radio" class="radio_cl"
									name="followUpClinicLimit" value="false"
									<c:if test='${false == hospitalizationCureInfo.followUpClinicLimit}'>checked="checked"</c:if> />
									否 期限: <input type="text" name="followUpClinicNumberOfDays"
									value="${hospitalizationCureInfo.followUpClinicNumberOfDays}">
									天</td>
								<td align="left" class="tdLabel_7">新生儿出生体重</td>
								<td align="left" class="tdLabel_8"><input type="text"
									value="${hospitalizationCureInfo.babyBirthWeight}"
									name="babyBirthWeight" /> g</td>
								<td align="left" class="tdLabel_7">新生儿入院体重</td>
								<td align="left" class="tdLabel_8"><input type="text"
									value="${hospitalizationCureInfo.babyInHospitalWeight}"
									name="babyInHospitalWeight"> g</td>
							</tr>
							<tr>
								<td class="tdLabel_7">门诊和出院诊断</td>
								<td class="tdLabel_8"><input type="hidden"
									id="outpatientAndDischargeDiagCodeHidden"
									value="${hospitalizationCureInfo.outpatientAndDischargeDiagCode}">
									<select style="width:180px" id="outpatientAndDischargeDiag"
									name="outpatientAndDischargeDiagCode">
										<option value="">----请选择----</option>
										<c:forEach var="diagnosticCoincidenceType"
											items="${basicInfos['diagnosticCoincidenceTypes']}">
											<option value="${diagnosticCoincidenceType.code }">${diagnosticCoincidenceType.name
												}</option>
										</c:forEach>
								</select> <input type="hidden" id="outpatientAndDischargeDiagNameHidden"
									name="outpatientAndDischargeDiagName"
									value="${hospitalizationCureInfo.outpatientAndDischargeDiagName}">

								</td>

								<td class="tdLabel_7">入院和出院诊断</td>
								<td class="tdLabel_8"><input type="hidden"
									id="outpatientAndInpatientDiagCodeHidden"
									value="${hospitalizationCureInfo.outpatientAndInpatientDiagCode}">
									<select style="width:180px" id="outpatientAndInpatientDiag"
									name="outpatientAndInpatientDiagCode">
										<option value="">----请选择----</option>
										<c:forEach var="diagnosticCoincidenceType"
											items="${basicInfos['diagnosticCoincidenceTypes']}">
											<option value="${diagnosticCoincidenceType.code }">${diagnosticCoincidenceType.name
												}</option>
										</c:forEach>
								</select> <input type="hidden" id="outpatientAndInpatientDiagNameHidden"
									name="outpatientAndInpatientDiagName"
									value="${hospitalizationCureInfo.outpatientAndInpatientDiagName}">

								</td>
								<td class="tdLabel_7">术前和术后诊断</td>
								<td class="tdLabel_8"><input type="hidden"
									id="beforeOpsAndAfterOpsDiagCodeHidden"
									value="${hospitalizationCureInfo.beforeOpsAndAfterOpsDiagCode}">
									<select style="width:180px" id="beforeOpsAndAfterOpsDiag"
									name="beforeOpsAndAfterOpsDiagCode">
										<option value="">----请选择----</option>
										<c:forEach var="diagnosticCoincidenceType"
											items="${basicInfos['diagnosticCoincidenceTypes']}">
											<option value="${diagnosticCoincidenceType.code }">${diagnosticCoincidenceType.name
												}</option>
										</c:forEach>
								</select> <input type="hidden" id="beforeOpsAndAfterOpsDiagNameHidden"
									name="beforeOpsAndAfterOpsDiagName"
									value="${hospitalizationCureInfo.beforeOpsAndAfterOpsDiagName}">

								</td>
							</tr>
							<tr>
								<td class="tdLabel_7">临床与病理诊断</td>
								<td class="tdLabel_8"><input type="hidden"
									id="clinicalAndPathologDiagCodeHidden"
									value="${hospitalizationCureInfo.clinicalAndPathologDiagCode}">
									<select style="width:180px" id="clinicalAndPathologDiag"
									name="clinicalAndPathologDiagCode">
										<option value="">----请选择----</option>
										<c:forEach var="diagnosticCoincidenceType"
											items="${basicInfos['diagnosticCoincidenceTypes']}">
											<option value="${diagnosticCoincidenceType.code }">${diagnosticCoincidenceType.name
												}</option>
										</c:forEach>
								</select> <input type="hidden" id="clinicalAndPathologDiagNameHidden"
									name="clinicalAndPathologDiagName"
									value="${hospitalizationCureInfo.clinicalAndPathologDiagName}">

								</td>

								<td class="tdLabel_7">放射和病理诊断</td>
								<td class="tdLabel_8"><input type="hidden"
									id="radiologAndPathologDiagCodeHidden"
									value="${hospitalizationCureInfo.radiologAndPathologDiagCode}">
									<select style="width:180px" id="radiologAndPathologDiag"
									name="radiologAndPathologDiagCode">
										<option value="">----请选择----</option>
										<c:forEach var="diagnosticCoincidenceType"
											items="${basicInfos['diagnosticCoincidenceTypes']}">
											<option value="${diagnosticCoincidenceType.code }">${diagnosticCoincidenceType.name
												}</option>
										</c:forEach>
								</select> <input type="hidden" id="radiologAndPathologDiagNameHidden"
									name="radiologAndPathologDiagName"
									value="${hospitalizationCureInfo.radiologAndPathologDiagName}">

								</td>
							</tr>
							<tr>
								<td class="tdLabel_7">科主任</td>
								<td class="tdLabel_8"><input type="text"
									name="headOfDepartmentName"
									id="doctorFormControl-headOfDepartment"
									value="${hospitalizationCureInfo.headOfDepartmentName}">
									<div></div>
									<div id="headOfDepartmentDiv"></div> <input type="hidden"
									id="headOfDepartmentId" name="headOfDepartmentId"
									readonly="readonly"
									value="${hospitalizationCureInfo.headOfDepartmentId }" /></td>

								<td class="tdLabel_7">主任医师</td>
								<td class="tdLabel_8"><input type="text"
									name="chiefOfDoctorName" id="doctorFormControl-chiefOfDoctor"
									value="${hospitalizationCureInfo.chiefOfDoctorName}">
									<div></div>
									<div id="chiefOfDoctorDiv"></div> <input type="hidden"
									id="chiefOfDoctorId" name="chiefOfDoctorId" readonly="readonly"
									value="${hospitalizationCureInfo.chiefOfDoctorId}" /></td>
								<td class="tdLabel_7">副主任医师</td>
								<td class="tdLabel_8"><input type="text"
									name="associateChiefOfDoctorName"
									id="doctorFormControl-associateChiefOfDoctor"
									value="${hospitalizationCureInfo.associateChiefOfDoctorName}">
									<div></div>
									<div id="associateChiefOfDoctorDiv"></div> <input type="hidden"
									id="associateChiefOfDoctorId" name="associateChiefOfDoctorId"
									readonly="readonly"
									value="${hospitalizationCureInfo.associateChiefOfDoctorId}" />

								</td>
							</tr>

							<tr>
								<td class="tdLabel_7">主治医师</td>
								<td class="tdLabel_8"><input type="text"
									name="attendingOfDoctorName"
									id="doctorFormControl-attendingOfDoctor"
									value="${hospitalizationCureInfo.attendingOfDoctorName}">
									<div></div>
									<div id="attendingOfDoctorDiv"></div> <input type="hidden"
									id="attendingOfDoctorId" name="attendingOfDoctorId"
									readonly="readonly"
									value="${hospitalizationCureInfo.attendingOfDoctorId}" /></td>

								<td class="tdLabel_7">进修医师</td>
								<td class="tdLabel_8"><input type="text"
									name="refresherOfDoctorName"
									id="doctorFormControl-refresherOfDoctor"
									value="${hospitalizationCureInfo.refresherOfDoctorName}">
									<div></div>
									<div id="refresherOfDoctorDiv"></div> <input type="hidden"
									id="refresherOfDoctorId" name="refresherOfDoctorId"
									readonly="readonly"
									value="${hospitalizationCureInfo.refresherOfDoctorId}" /></td>
							</tr>
							<tr>
								<td class="tdLabel_7">研究生实习医师</td>
								<td class="tdLabel_8"><input type="text"
									name="graduateInternOfDoctorName"
									id="doctorFormControl-graduateInternOfDoctor"
									value="${hospitalizationCureInfo.graduateInternOfDoctorName}">
									<div></div>
									<div id="graduateInternOfDoctorDiv"></div> <input type="hidden"
									id="graduateInternOfDoctorId" name="graduateInternOfDoctorId"
									readonly="readonly"
									value="${hospitalizationCureInfo.graduateInternOfDoctorId}" />

								</td>
								<td class="tdLabel_7">实习医师</td>
								<td class="tdLabel_8"><input type="text"
									name="internOfDoctorName" id="doctorFormControl-internOfDoctor"
									value="${hospitalizationCureInfo.internOfDoctorName}">
									<div></div>
									<div id="internOfDoctorDiv"></div> <input type="hidden"
									id="internOfDoctorId" name="internOfDoctorId"
									readonly="readonly"
									value="${hospitalizationCureInfo.internOfDoctorId}" /></td>

								<td class="tdLabel_7">编码员</td>
								<td class="tdLabel_8"><input type="text"
									name="medicalOfCoderName" id="doctorFormControl-medicalOfCoder"
									value="${hospitalizationCureInfo.medicalOfCoderName}">
									<div></div>
									<div id="medicalOfCoderDiv"></div> <input type="hidden"
									id="medicalOfCoderId" name="medicalOfCoderId"
									readonly="readonly"
									value="${hospitalizationCureInfo.medicalOfCoderId}" /></td>
							</tr>
							<tr>
								<td class="tdLabel_7">质控医师</td>
								<td class="tdLabel_8"><input type="text"
									name="qualityCcontrolOfDoctorName"
									id="doctorFormControl-qualityCcontrolOfDoctor"
									value="${hospitalizationCureInfo.qualityCcontrolOfDoctorName}">
									<div></div>
									<div id="qualityCcontrolOfDoctorDiv"></div> <input
									type="hidden" id="qualityCcontrolOfDoctorId"
									name="qualityCcontrolOfDoctorId" readonly="readonly"
									value="${hospitalizationCureInfo.qualityCcontrolOfDoctorId}" />

								</td>
								<td class="tdLabel_7">质控护士</td>
								<td class="tdLabel_8"><input type="text"
									name="qualityCcontrolOfNurseName"
									id="doctorFormControl-qualityCcontrolOfNurse"
									value="${hospitalizationCureInfo.qualityCcontrolOfNurseName}">
									<div></div>
									<div id="qualityCcontrolOfNurseDiv"></div> <input type="hidden"
									id="qualityCcontrolOfNurseId" name="qualityCcontrolOfNurseId"
									readonly="readonly"
									value="${hospitalizationCureInfo.qualityCcontrolOfNurseId}" />

								</td>
							</tr>
						</tbody>
					</table>
				</form>
			</div>
			<!--疾病诊断-->
			<div role="tabpanel" class="tab-pane" id="diseaseDiagnos">
				<form
					action="${basePath}/medrecord/medrecordHomePageManageOfDiagnosisInfo"
					method="post" id="disDataForm">
					<input type="hidden" name="firstGuid"
						value="${hospitalizationNote.first_level_medical_guid}"> <input
						type="hidden"
						value="${fn:length(hospitalizationDiagnosisInfo.hospitalizationDiagnosis)}"
						id="diseaseDiagnosCount" />
					<!-- 包含疾病列表start -->
					<table style="margin:0 auto;" id="diseaseDiagnosList">
						<tbody>
							<tr>
								<td colspan="8">
									<div style="float:right">
										<input type="button" value="保存" id="zongAdd"
											onclick="diseaseAdd()" class="btn"> <input
											type="button" value="新增" onclick="add_diseaseDiagnos()"
											id="addDiagnosis" class="btn">
									</div> <script>
                                    	function diseaseAdd(){
                         					var diseaseDiagnosCount=$("#diseaseDiagnosCount").val();
                         					var getjbzdbm0="";
                         					var getjbzdbm1="";
                         				
                         					for(var i=0 ;i<diseaseDiagnosCount;i++){
                         						var getjbzdbm=$("#getjbzdbm-"+i).val();
                         						if(i==0){
                         							getjbzdbm0=getjbzdbm;
                         						}
                         						if(i==1){
                         							getjbzdbm1=getjbzdbm;
                         						}
                         						var sexName=$("#sexName").val();
                         						//alert(getjbzdbm+"--"+sexName);
                         						if(getjbzdbm!=null && getjbzdbm!=''){
                         							if(sexName=='男性'){
	                         							if(getjbzdbm.indexOf("D06")==0){
	                         								alert("男性不能编码疾病为女性疾病编码");
	                         								return;
	                         							}
	                         							if(getjbzdbm.indexOf("A34")==0){
	                         								alert("男性不能编码疾病为女性疾病编码");
	                         								return;
	                         							}
	                         							if(getjbzdbm.indexOf("B37.3")==0){
	                         								alert("男性不能编码疾病为女性疾病编码");
	                         								return;
	                         							}
	                         							if(getjbzdbm.indexOf("C51")==0){
	                         								alert("男性不能编码疾病为女性疾病编码");
	                         								return;
	                         							}
	                         							if(getjbzdbm.indexOf("D05")==0){
	                         								alert("男性不能编码疾病为女性疾病编码");
	                         								return;
	                         							}
	                         							if(getjbzdbm.indexOf("C5")==0){
	                         								alert("男性不能编码疾病为女性疾病编码");
	                         								return;
	                         							}
                         								
                         							}
                         							
                         							if(sexName=='女性'){
                         								if(getjbzdbm.indexOf("B26")==0){
	                         								alert("女性不能编码疾病为男性疾病编码");
	                         								return;
	                         							}
                         								if(getjbzdbm.indexOf("C60")==0){
	                         								alert("女性不能编码疾病为男性疾病编码");
	                         								return;
	                         							}
                         								if(getjbzdbm.indexOf("C61")==0){
	                         								alert("女性不能编码疾病为男性疾病编码");
	                         								return;
	                         							}
                         								if(getjbzdbm.indexOf("C62")==0){
	                         								alert("女性不能编码疾病为男性疾病编码");
	                         								return;
	                         							}
                         								if(getjbzdbm.indexOf("C63")==0){
	                         								alert("女性不能编码疾病为男性疾病编码");
	                         								return;
	                         							}
                         								if(getjbzdbm.indexOf("D07.4")==0){
	                         								alert("女性不能编码疾病为男性疾病编码");
	                         								return;
	                         							}
                         								if(getjbzdbm.indexOf("D07.5")==0){
	                         								alert("女性不能编码疾病为男性疾病编码");
	                         								return;
	                         							}
                         								if(getjbzdbm.indexOf("D07.6")==0){
	                         								alert("女性不能编码疾病为男性疾病编码");
	                         								return;
	                         							}
                         							}
                         							
                         							
                         							var age=$("#age").val();
                         							if(age!=null && age!=''){
                         								if(age<12){
                         									if(getjbzdbm.indexOf("C5")==0){
    	                         								alert("12岁以下儿童出院诊断不应编为女性或男性生殖疾病编码");
    	                         								return;
    	                         							}
                         									if(getjbzdbm.indexOf("C60")==0){
    	                         								alert("12岁以下儿童出院诊断不应编为女性或男性生殖疾病编码");
    	                         								return;
    	                         							}
                         									if(getjbzdbm.indexOf("C61")==0){
    	                         								alert("12岁以下儿童出院诊断不应编为女性或男性生殖疾病编码");
    	                         								return;
    	                         							}
                         									if(getjbzdbm.indexOf("C62")==0){
    	                         								alert("12岁以下儿童出院诊断不应编为女性或男性生殖疾病编码");
    	                         								return;
    	                         							}
                         									if(getjbzdbm.indexOf("C63")==0){
    	                         								alert("12岁以下儿童出院诊断不应编为女性或男性生殖疾病编码");
    	                         								return;
    	                         							}
                         									if(getjbzdbm.indexOf("D24")==0){
    	                         								alert("12岁以下儿童出院诊断不应编为女性或男性生殖疾病编码");
    	                         								return;
    	                         							}
                         									if(getjbzdbm.indexOf("D25")==0){
    	                         								alert("12岁以下儿童出院诊断不应编为女性或男性生殖疾病编码");
    	                         								return;
    	                         							}
                         									if(getjbzdbm.indexOf("D26")==0){
    	                         								alert("12岁以下儿童出院诊断不应编为女性或男性生殖疾病编码");
    	                         								return;
    	                         							}
                         									if(getjbzdbm.indexOf("D27")==0){
    	                         								alert("12岁以下儿童出院诊断不应编为女性或男性生殖疾病编码");
    	                         								return;
    	                         							}
                         									if(getjbzdbm.indexOf("D28")==0){
    	                         								alert("12岁以下儿童出院诊断不应编为女性或男性生殖疾病编码");
    	                         								return;
    	                         							}
                          									if(getjbzdbm.indexOf("D29")==0){
    	                         								alert("12岁以下儿童出院诊断不应编为女性或男性生殖疾病编码");
    	                         								return;
    	                         							}
                         								}
                         							}
                         						}
                         					}
                         					
                         		
                         					if((getjbzdbm0!=null && getjbzdbm0!='' && getjbzdbm0!=undefined)&&(getjbzdbm1!=null && getjbzdbm1!='' && getjbzdbm1!=undefined)){
                         						
                         						if(getjbzdbm0.indexOf("A15")==0 && getjbzdbm1.indexOf("A15")==0){
                         							if(confirm(""+getjbzdbm0+"和"+getjbzdbm1+"建议合并为A15.811,是否取消重新编码!")){
                         								return;
                         							}else{
                         								$("#disDataForm").submit();
                         							}
                         						}
                         					}else{
                         						$("#disDataForm").submit();
                         					}
                         					
                         					

                                    
                                    	
                                    		
                                    	}
                                    </script></td>
							</tr>
							<tr>
								<td class="tdLabel_4" width="20%">诊断类型</td>
								<td class="tdLabel_4" width="28%">疾病编码</td>
								<td class="tdLabel_4" width="12%">入院时病情</td>
								<td class="tdLabel_4" width="5%">诊治</td>
								<td class="tdLabel_4" width="5%">治疗结果</td>
								<td class="tdLabel_4" width="17%">确诊日期</td>
								<td class="tdLabel_4" width="5%">位序</td>
								<td class="tdLabel_4" width="8%">操作</td>
							</tr>
							<c:forEach var="hospitalizationDiagnosis"
								items="${hospitalizationDiagnosisInfo.hospitalizationDiagnosis }"
								varStatus="s">


								<td>
									<!-- 诊断类型--> <select
									name="hospitalizationDiagnosis[${s.index }].diagnoseTypeId">
										<option value="">---请选择---</option>
										<c:forEach var="diagnoseType"
											items="${basicInfos['diagnoseTypeList']}">
											<c:choose>
												<c:when
													test="${diagnoseType.id == hospitalizationDiagnosis.diagnoseTypeId}">
													<option selected="selected" value="${diagnoseType.id }">${diagnoseType.name
														}</option>
												</c:when>
												<c:otherwise>
													<option value="${diagnoseType.id }">${diagnoseType.name
														}</option>
												</c:otherwise>
											</c:choose>
										</c:forEach>
								</select> <input type="hidden"
									name="hospitalizationDiagnosis[${s.index }].diagnoseTypeName"
									value="${hospitalizationDiagnosis.diagnoseTypeName}" /></td>
								<td><c:choose>
										<c:when
											test='${hospitalizationDiagnosis.diseaseCode!=null and hospitalizationDiagnosis.diseaseCode!=""}'>
											<input type="text" id="diseaseFormControl-${s.index }"
												value="${hospitalizationDiagnosis.diseaseCode}-${hospitalizationDiagnosis.diseaseName}"
												class="input_box" />
										</c:when>
										<c:otherwise>
											<input type="text" id="diseaseFormControl-${s.index }"
												class="input_box" value="">
										</c:otherwise>
									</c:choose>

									<div></div>
									<div id="search_suggest${s.index }"></div> <input type="hidden"
									id="getjbzdbm-${s.index }"
									name="hospitalizationDiagnosis[${s.index }].diseaseCode"
									readonly="readonly"
									value="${hospitalizationDiagnosis.diseaseCode}" /> <input
									type="hidden" id="getjbmc-${s.index }"
									name="hospitalizationDiagnosis[${s.index }].diseaseName"
									readonly="readonly"
									value="${hospitalizationDiagnosis.diseaseName}" /></td>
								<td>
									<!-- 入院时病情--> <select
									name="hospitalizationDiagnosis[${s.index }].inHospitalDiseaseStateId">
										<option value="">-请选择-</option>
										<c:forEach var="diseaseState"
											items="${basicInfos['inHospitalStateList']}">
											<c:choose>
												<c:when
													test="${diseaseState.id == hospitalizationDiagnosis.inHospitalDiseaseStateId}">
													<option selected="selected" value="${diseaseState.id }">${diseaseState.name
														}</option>
												</c:when>
												<c:otherwise>
													<option value="${diseaseState.id }">${diseaseState.name
														}</option>
												</c:otherwise>
											</c:choose>
										</c:forEach>
								</select> <input type="hidden"
									name="hospitalizationDiagnosis[${s.index }].inHospitalDiseaseStateName"
									value="${hospitalizationDiagnosis.inHospitalDiseaseStateName}" />
								</td>
								<td align="center"><c:choose>
										<c:when test="${hospitalizationDiagnosis.treatment ==null}">
											<input type="checkbox" class="check_cl"
												id="isTreatment-${s.index }" value="false"
												onclick="changeTreatment(this)" />
											<input type="checkbox" style="display: none"
												name="hospitalizationDiagnosis[${s.index }].treatment"
												checked="checked" value="false" />
										</c:when>
										<c:otherwise>
											<input type="checkbox" class="check_cl"
												id="isTreatment-${s.index }"
												<c:if test="${true==hospitalizationDiagnosis.treatment }">checked="checked"</c:if>
												value="${hospitalizationDiagnosis.treatment}"
												onclick="changeTreatment(this)" />
											<input type="checkbox" style="display: none"
												name="hospitalizationDiagnosis[${s.index }].treatment"
												checked="checked"
												value="${hospitalizationDiagnosis.treatment}" />
										</c:otherwise>
									</c:choose></td>
								<td>
									<!-- 治疗结果 --> <select
									name="hospitalizationDiagnosis[${s.index }].treatmentResultId">
										<option value="">-请选择-</option>
										<c:forEach var="treamentResult"
											items="${basicInfos['treatmentResultList']}">
											<c:choose>
												<c:when
													test="${treamentResult.id == hospitalizationDiagnosis.treatmentResultId}">
													<option selected="selected" value="${treamentResult.id }">${treamentResult.name
														}</option>
												</c:when>
												<c:otherwise>
													<option value="${treamentResult.id }">${treamentResult.name
														}</option>
												</c:otherwise>
											</c:choose>
										</c:forEach>
								</select> <input type="hidden"
									name="hospitalizationDiagnosis[${s.index }].treatmentResultName"
									value="${hospitalizationDiagnosis.treatmentResultName}" /></td>

								<td><input type="text" onFocus="WdatePicker()"
									class="input_box"
									name="hospitalizationDiagnosis[${s.index }].confirmedDate"
									value="<fmt:formatDate value="${hospitalizationDiagnosis.confirmedDate}" pattern="yyyy-MM-dd"/>" />
								</td>

								<td><input type="text"
									name="hospitalizationDiagnosis[${s.index }].diagnoseSort"
									class="input_box"
									value="${hospitalizationDiagnosis.diagnoseSort}" /></td>

								<td align="center"><a
									<c:if test="${s.index==0 }">hidden="true" </c:if>
									id="diagnosisDelete${s.index }" class="int" onclick="del(this)">
										删除</a></td>
								</tr>

							</c:forEach>

						</tbody>
					</table>

				</form>
			</div>
			<!--手术操作-->
			<div role="tabpanel" class="tab-pane" id="operationInfo">
				<form
					action="${basePath}/medrecord/medrecordHomePageManageOfOperationInfo"
					method="post" id="operationDataForm">
					<input type="hidden" name="firstGuid"
						value="${hospitalizationNote.first_level_medical_guid}">
					<table style="width: 100%" id="">
						<tbody>
							<tr>
								<td align="left" class="tdLabel_7" width="11%">围手术期</td>
								<td colspan="3" style="border-right: 0px"><input
									id="zblsh_id" type="hidden" value="2191251"> <input
									type="text" name="periOperationPeriodStartDate"
									value="<fmt:formatDate value="${operationInfo.periOperationPeriodStartDate}" pattern="yyyy-MM-dd"/>"
									onfocus="WdatePicker()" class="input_box" style="width:150px">--<input
									type="text" name="periOperationPeriodEndDate"
									value="<fmt:formatDate value="${operationInfo.periOperationPeriodEndDate}" pattern="yyyy-MM-dd"/>"
									onfocus="WdatePicker()" class="input_box" style="width:150px">
								</td>
								<td colspan="3">
									<div style="float:right">
										<input type="button" value="删除" onclick="delOP()" class="int">
										<input type="button" value="新增" onclick="addOP()" class="int">
										<input type="button" onclick="addOperation()" value="保存"
											class="int">
										<script>
										function addOperation(){
											var operationCount=$("#operationCount").val();
											for(var i=0;i<operationCount;i++){
												var operationCodeShow00=$("#operationCodeShow-"+i+"0").val();
												var operationCodeShow01=$("#operationCodeShow-"+i+"1").val();
												
												if(!operationCodeShow00){
													alert("手术与操作不能为空!");
													return;
												}
												
												var incisionLevel= $("select[name='operations["+i+"].incisionLevelId']").val();
												
												var cicatrizationType=$("select[name='operations["+i+"].cicatrizationTypeId']").val();
												
												var opsLevelId=$("select[name='operations["+i+"].opsLevelId']").val();
												
											
												if(!incisionLevel && cicatrizationType){
													alert("切口等级为空,愈合类别应该为空!");
													return;
												}
												
												if(opsLevelId && !cicatrizationType){
													alert("填写了手术级别,愈合类别不应该为空!");
													return;
												}
												
												
												if(operationCodeShow01){
													if(operationCodeShow00.indexOf("00")==0 && operationCodeShow01.indexOf("00")==0){
														if(confirm(""+operationCodeShow00+"和"+operationCodeShow01+"建议合并为00.02001,是否取消重新编码!")){
	                         								return;
	                         							}else{
	                         								$("#operationDataForm").submit();
	                         							}
													}
												}else{
													$("#operationDataForm").submit();
												}
											}
										}
                                    </script>


									</div></td>
							</tr>
						</tbody>
					</table>
					<!-- 选项卡start-->
					<div class="bg_danlanColor clearfix" style="color:#333">
						<input type="hidden"
							value="${fn:length(operationInfo.operations)}"
							id="operationCount" />
						<ul class="margin0 clearfix" id="navli">
							<c:forEach var="operation" items="${operationInfo.operations}"
								varStatus="s">

								<li <c:if test="${s.index==0}">class="selected"</c:if>
									data-index="${s.index }">记录${s.index+1 }</li>
							</c:forEach>
						</ul>
					</div>
					<!--内容-->
					<div class="content" id="operations">
						<c:forEach var="operation" items="${operationInfo.operations}"
							varStatus="s">
							<div class="padding0px" id="operation${s.index }"
								<c:if test="${s.index!=0}">style="display: none;"</c:if>>
								<table width="100%" cellspacing="0" border="0" cellpadding="0"
									class="formTable2">
									<tbody>
										<tr>
											<td class="tdLabel_7">开始时间</td>
											<td colspan="2"><input type="text"
												name="operations[${s.index}].operationStartDate"
												onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
												class="input_box" style="width: 250px"
												value="<fmt:formatDate value="${ operation.operationStartDate}" pattern="yyyy-MM-dd HH:mm:ss"/>">
											</td>
											<td class="tdLabel_7">结束时间</td>
											<td colspan="2"><input type="text"
												name="operations[${s.index}].operationEndDate"
												onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
												class="input_box" style="width: 250px"
												value="<fmt:formatDate value="${operation.operationEndDate}" pattern="yyyy-MM-dd HH:mm:ss"/>">
											</td>
										</tr>
										<tr>
											<td class="tdLabel_7">手术及操作</td>
											<td colspan="2"><c:choose>
													<c:when
														test='${operation.operationCode==null or operation.operationCode==""}'>
														<input type="text" style="width: 300px"
															id="operationCodeShow-${s.index}0" class="input_box"
															value="">
													</c:when>
													<c:otherwise>
														<input type="text" style="width: 300px"
															id="operationCodeShow-${s.index}0" class="input_box"
															value="${operation.operationCode}-${operation.operationName}">
													</c:otherwise>
												</c:choose>
												<div></div>
												<div id="operationCodeDiv${s.index}0"></div> <input
												type="hidden" id="operationCode${s.index}0"
												name="operations[${s.index}].operationCode"
												readonly="readonly" value="${operation.operationCode}" /> <input
												type="hidden" id="operationName${s.index}0"
												name="operations[${s.index}].operationName"
												readonly="readonly" value="${operation.operationName}" /></td>
											<td class="tdLabel_7">合并手术1</td>
											<td colspan="2"><c:choose>
													<c:when
														test='${operation.mergeOperationCode1==null or operation.mergeOperationCode1==""}'>
														<input type="text" style="width: 300px"
															id="operationCodeShow-${s.index}1" class="input_box"
															value="">
													</c:when>
													<c:otherwise>
														<input type="text" style="width: 300px"
															id="operationCodeShow-${s.index}1" class="input_box"
															value="${operation.mergeOperationCode1}-${operation.mergeOperationName1}">
													</c:otherwise>
												</c:choose>
												<div></div>
												<div id="operationCodeDiv${s.index}1"></div> <input
												type="hidden" id="operationCode${s.index}1"
												name="operations[${s.index}].mergeOperationCode1"
												readonly="readonly" value="${operation.mergeOperationCode1}" />
												<input type="hidden" id="operationName${s.index}1"
												name="operations[${s.index}].mergeOperationName1"
												readonly="readonly" value="${operation.mergeOperationName1}" />
											</td>
										</tr>
										<!-- 下方表格 -->
										<tr>
											<td class="tdLabel_7">合并手术2</td>
											<td colspan="2"><c:choose>
													<c:when
														test='${operation.mergeOperationCode2==null or operation.mergeOperationCode2==""}'>
														<input type="text" style="width: 300px"
															id="operationCodeShow-${s.index}2" class="input_box"
															value="">
													</c:when>
													<c:otherwise>
														<input type="text" style="width: 300px"
															id="operationCodeShow-${s.index}2" class="input_box"
															value="${operation.mergeOperationCode2}-${operation.mergeOperationName2}">
													</c:otherwise>
												</c:choose>

												<div></div>
												<div id="operationCodeDiv${s.index}2"></div> <input
												type="hidden" id="operationCode${s.index}2"
												name="operations[${s.index}].mergeOperationCode2"
												readonly="readonly" value="${operation.mergeOperationCode2}" />
												<input type="hidden" id="operationName${s.index}2"
												name="operations[${s.index}].mergeOperationName2"
												readonly="readonly" value="${operation.mergeOperationName2}" />
											</td>
											<td class="tdLabel_7">合并手术3</td>
											<td colspan="2"><c:choose>
													<c:when
														test='${operation.mergeOperationCode3==null or operation.mergeOperationCode3==""}'>
														<input type="text" style="width: 300px"
															id="operationCodeShow-${s.index}3" class="input_box"
															value="">
													</c:when>
													<c:otherwise>
														<input type="text" style="width: 300px"
															id="operationCodeShow-${s.index}3" class="input_box"
															value="${operation.mergeOperationCode3}-${operation.mergeOperationName3}">
													</c:otherwise>
												</c:choose>

												<div></div>
												<div id="operationCodeDiv${s.index}3"></div> <input
												type="hidden" id="operationCode${s.index}3"
												name="operations[${s.index}].mergeOperationCode3"
												readonly="readonly" value="${operation.mergeOperationCode3}" />
												<input type="hidden" id="operationName${s.index}3"
												name="operations[${s.index}].mergeOperationName3"
												readonly="readonly" value="${operation.mergeOperationName3}" />
											</td>
										</tr>
										<%-- 										<tr>
													<td class="tdLabel_7">合并手术4</td>
													<td colspan="2"><input type="text"
														style="width: 300px" id="operationCodeShow-${s.index}4"
														class="input_box" value="${operation.mergeOperationCode4}">

														<div></div>
														<div id="operationCodeDiv${s.index}4"></div> <input type="hidden"
														id="operationCode${s.index}4"
														name="operations[${s.index}].mergeOperationCode4"
														readonly="readonly" value="${operation.mergeOperationCode4}" /></td>
													<td class="tdLabel_7">合并手术5</td>
													<td colspan="2"><input type="text"
														style="width: 300px" id="operationCodeShow-${s.index}5"
														class="input_box" value="${operation.mergeOperationCode5}">

														<div></div>
														<div id="operationCodeDiv${s.index}5"></div> <input type="hidden"
														id="operationCode${s.index}5"
														name="operations[${s.index}].mergeOperationCode5"
														readonly="readonly" value="${operation.mergeOperationCode5}" /></td>
												</tr> --%>
										<tr>
											<td class="tdLabel_7">切口等级</td>
											<td><select
												name="operations[${s.index}].incisionLevelId">
													<option value="">=请选择=</option>
													<c:forEach var="incisionLevel"
														items="${basicInfos.incidionLevelList}">
														<option value="${incisionLevel.id}"
															<c:if test="${incisionLevel.id==operation.incisionLevelId}">selected="selected"</c:if>>${incisionLevel.code}-${incisionLevel.name}</option>
													</c:forEach>
											</select> <input type="hidden"
												name="operations[${s.index}].incisionLevelName"
												value="${operation.incisionLevelName}" /></td>
											<td class="tdLabel_7">愈合类别</td>
											<td colspan="3"><select
												name="operations[${s.index}].cicatrizationTypeId">
													<option value="">=请选择=</option>
													<c:forEach var="cicatrizationType"
														items="${basicInfos.cicatrizationTypeList}">
														<option value="${cicatrizationType.id}"
															<c:if test="${cicatrizationType.id==operation.cicatrizationTypeId}">selected="selected"</c:if>>${cicatrizationType.code}-${cicatrizationType.name}</option>
													</c:forEach>
											</select> <input type="hidden"
												name="operations[${s.index}].cicatrizationTypeName"
												value="${operation.cicatrizationTypeName}" /></td>
										</tr>
										<tr>
											<td class="tdLabel_7">手术及操作标识</td>
											<td><select
												name="operations[${s.index}].opsPerationMarkId">
													<option value="">=请选择=</option>
													<c:forEach var="opsMark" items="${basicInfos.opsMarkList}">
														<option value="${opsMark.id}"
															<c:if test="${opsMark.id == operation.opsPerationMarkId}">selected="selected"</c:if>>${opsMark.code}-${opsMark.name}</option>
													</c:forEach>
											</select> <input type="hidden"
												name="operations[${s.index}].opsPerationMarkName"
												value="${operation.opsPerationMarkName}" /></td>

											<td align="left" class="tdLabel_7">手术性质</td>
											<td align="left"><select
												name="operations[${s.index}].opsTimeLimitId">
													<option value="0">=请选择=</option>
													<c:forEach var="opsTimeLimit"
														items="${basicInfos.opsTimeLimitList}">
														<option value="${opsTimeLimit.id}"
															<c:if test="${opsTimeLimit.id == operation.opsTimeLimitId}">selected="selected"</c:if>>${opsTimeLimit.code}-${opsTimeLimit.name}</option>
													</c:forEach>
											</select> <input type="hidden"
												name="operations[${s.index}].opsTimeLimitName"
												value="${operation.opsTimeLimitName}" /></td>
											<td class="tdLabel_7">手术级别</td>
											<td><select name="operations[${s.index}].opsLevelId">
													<option value="">=请选择=</option>
													<c:forEach var="opsLevel"
														items="${basicInfos.opsLevelList}">
														<option value="${opsLevel.id}"
															<c:if test="${opsLevel.id == operation.opsLevelId}">selected="selected"</c:if>>${opsLevel.code}-${opsLevel.name}</option>
													</c:forEach>
											</select> <input type="hidden"
												name="operations[${s.index}].opsLevelName"
												value="${operation.opsLevelName}" /></td>
										</tr>

										<tr>
											<td align="left" class="tdLabel_7">手术部位</td>
											<td align="left"><select
												name="operations[${s.index}].opsPartId">
													<option value="">=请选择=</option>
													<c:forEach var="opsPart" items="${basicInfos.opsPartList}">
														<option value="${opsPart.id}"
															<c:if test="${opsPart.id == operation.opsPartId}">selected="selected"</c:if>>${opsPart.code}-${opsPart.name}</option>
													</c:forEach>
											</select> <input type="hidden"
												name="operations[${s.index}].opsPartName"
												value="${operation.opsPartName}" /></td>
											<td align="left" class="tdLabel_7">手术感染部位</td>
											<td align="left"><select
												name="operations[${s.index}].opsInfectPartId">
													<option value="">=请选择=</option>
													<c:forEach var="opsInfectPart"
														items="${basicInfos.opsInfectPartList}">
														<option value="${opsInfectPart.id}"
															<c:if test="${opsInfectPart.id == operation.opsInfectPartId}">selected="selected"</c:if>>${opsInfectPart.code}-${opsInfectPart.name}</option>
													</c:forEach>
											</select> <input type="hidden"
												name="operations[${s.index}].opsInfectPartName"
												value="${operation.opsInfectPartName}" /></td>
											<td align="left" class="tdLabel_7" colspan="1">异物遗留</td>
											<td align="left"><input type="radio" class="radio_cl"
												name="operations[${s.index}].retainedForeignBody"
												value="true"
												<c:if test="${true == operation.retainedForeignBody}">checked="checked"</c:if>>是&nbsp;&nbsp;
												<input type="radio" class="radio_cl"
												name="operations[${s.index}].retainedForeignBody"
												value="false"
												<c:if test="${false == operation.retainedForeignBody}">checked="checked"</c:if>>否
											</td>
										</tr>
										<tr>
											<td align="left" class="tdLabel_7" colspan="1">体外循环</td>
											<td align="left"><input type="radio" class="radio_cl"
												value="true"
												name="operations[${s.index}].extracorporealCirculation"
												<c:if test="${true == operation.extracorporealCirculation}">checked="checked"</c:if>>是&nbsp;&nbsp;
												<input type="radio" class="radio_cl" value="false"
												name="operations[${s.index}].extracorporealCirculation"
												<c:if test="${false == operation.extracorporealCirculation}">checked="checked"</c:if>>否</td>
											<td align="left" class="tdLabel_7" colspan="1">手术后并发症</td>
											<td align="left"><select
												name="operations[${s.index}].opsAfterSyndromeId">
													<option value="">=请选择=</option>
													<c:forEach var="opsAfterSyndrom"
														items="${basicInfos.opsAfterSyndromList}">
														<option value="${opsAfterSyndrom.id}"
															<c:if test="${opsAfterSyndrom.id == operation.opsAfterSyndromeId}">selected="selected"</c:if>>${opsAfterSyndrom.code}-${opsAfterSyndrom.name}</option>
													</c:forEach>
											</select> <input type="hidden"
												name="operations[${s.index}].opsAfterSyndromeName"
												value="${operation.opsAfterSyndromeName}" /></td>
											<td align="left" class="radio_cl" colspan="1">手术中出血量</td>
											<td align="left"><input type="text" class="input_box"
												style="width: 120px"
												name="operations[${s.index}].opsOutBloodVolume"
												value="${operation.opsOutBloodVolume}">
											</td>
										</tr>
										<tr>
											<td align="left" class="tdLabel_7">重返手术室计划</td>
											<td align="left"><input type="radio" class="radio_cl"
												value="true"
												name="operations[${s.index}].haveReoperationPlan"
												<c:if test="${true == operation.haveReoperationPlan}">checked="checked"</c:if>>是&nbsp;&nbsp;
												<input type="radio" class="radio_cl" value="false"
												name="operations[${s.index}].haveReoperationPlan"
												<c:if test="${false == operation.haveReoperationPlan}">checked="checked"</c:if>>否</td>
											</td>
											<td align="left" class="tdLabel_7">重返手术室目的</td>
											<td align="left"><select
												name="operations[${s.index}].reoperationAimId">
													<option value="">=请选择=</option>
													<c:forEach var="reoperationAim"
														items="${basicInfos.reoperationAims}">
														<option value="${reoperationAim.id}"
															<c:if test="${reoperationAim.id == operation.reoperationAimId}">selected="selected"</c:if>>${reoperationAim.name}</option>
													</c:forEach>
											</select> <input type="hidden"
												name="operations[${s.index}].reoperationAimName"
												value="${operation.reoperationAimName}" /></td>
										</tr>
										<tr>
											<td align="left" class="tdLabel_7">麻醉分级</td>
											<td align="left"><select
												name="operations[${s.index}].anaesthesiaLevelId">
													<option value="">=请选择=</option>
													<c:forEach var="anaesthesiaLevel"
														items="${basicInfos.anaesthesiaLevelList}">
														<option value="${anaesthesiaLevel.id}"
															<c:if test="${anaesthesiaLevel.id == operation.anaesthesiaLevelId}">selected="selected"</c:if>>${anaesthesiaLevel.code}-${anaesthesiaLevel.name}</option>
													</c:forEach>
											</select> <input type="hidden"
												name="operations[${s.index}].anaesthesiaLevelName"
												value="${operation.anaesthesiaLevelName}" /></td>
											<td align="left" class="tdLabel_7" colspan="1">麻醉方式</td>
											<td align="left" colspan="3"><select style="width: 80%;"
												name="operations[${s.index}].anaesthesiaTypeId">
													<option value="">=请选择=</option>
													<c:forEach var="anaesthesiaWay"
														items="${basicInfos.anaesthesiaWayList}">
														<option value="${anaesthesiaWay.id}"
															<c:if test="${anaesthesiaWay.id == operation.anaesthesiaTypeId}">selected="selected"</c:if>>${anaesthesiaWay.code}-${anaesthesiaWay.name}</option>
													</c:forEach>
											</select> <input type="hidden"
												name="operations[${s.index}].anaesthesiaTypeName"
												value="${operation.anaesthesiaTypeName}" /></td>
										</tr>
										<tr>

											<td align="left" class="tdLabel_7">患者术后去向</td>
											<td align="left"><select
												name="operations[${s.index}].opsAfterDirectionId">
													<option value="">=请选择=</option>
													<c:forEach var="opsAfterDirection"
														items="${basicInfos.opsAfterDirectionList}">
														<option value="${opsAfterDirection.id}"
															<c:if test="${opsAfterDirection.id == operation.opsAfterDirectionId}">selected="selected"</c:if>>${opsAfterDirection.code}-${opsAfterDirection.name}</option>
													</c:forEach>
											</select> <input type="hidden"
												name="operations[${s.index}].opsAfterDirectionName"
												value="${operation.opsAfterDirectionName}" /></td>
											<td class="tdLabel_7">风险分级</td>
											<!-- 风险分级  -->
											<td><select name="operations[${s.index}].opsNisLevelId">
													<option value="">=请选择=</option>
													<c:forEach var="opsRiskLevel"
														items="${basicInfos.opsRiskLevelList}">
														<option value="${opsRiskLevel.id}"
															<c:if test="${opsRiskLevel.id == operation.opsNisLevelId}">selected="selected"</c:if>>${opsRiskLevel.code}-${opsRiskLevel.name}</option>
													</c:forEach>
											</select> <input type="hidden"
												name="operations[${s.index}].opsNisLevelName"
												value="${operation.opsNisLevelName}" /></td>
										</tr>
										<tr>
											<td align="left" class="tdLabel_7">进入复苏室时间</td>
											<td align="left" colspan="2"><input type="text"
												onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
												class="input_box" style="width: 250px"
												name="operations[${s.index}].inResuscitationRoomDate"
												value="<fmt:formatDate value="${operation.inResuscitationRoomDate }" pattern="yyyy-MM-dd HH:mm:ss"/>">
											</td>
											<td align="left" class="tdLabel_7">离开复苏室时间</td>
											<td align="left" colspan="2"><input type="text"
												onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss '})"
												class="input_box" style="width: 250px"
												name="operations[${s.index}].endResuscitationRoomDate"
												value="<fmt:formatDate value="${ operation.endResuscitationRoomDate}" pattern="yyyy-MM-dd HH:mm:ss"/>">
											</td>

										</tr>
										<tr>
											<td align="left" class="tdLabel_7">麻醉非预期事件</td>
											<td align="left" colspan="3"><select style="width: 80%;"
												name="operations[${s.index}].anaesthesiaUnforeseenId">
													<option value="">=请选择=</option>
													<c:forEach var="opsUnexpectEvent"
														items="${basicInfos.opsUnexpectEventList}">
														<option value="${opsUnexpectEvent.id}"
															<c:if test="${opsUnexpectEvent.id == operation.anaesthesiaUnforeseenId}">selected="selected"</c:if>>${opsUnexpectEvent.code}-${opsUnexpectEvent.name}</option>
													</c:forEach>
											</select> <input type="hidden"
												name="operations[${s.index}].anaesthesiaUnforeseenName"
												value="${operation.anaesthesiaUnforeseenName}" /></td>
											<td align="left" class="tdLabel_7">Steward评分</td>
											<td align="left" colspan="5"><input type="text"
												class="input_box" style="width: 120px"
												name="operations[${s.index}].stewardScore"
												value="${operation.stewardScore}">
											</td>
										</tr>
										<tr>
											<td align="left" class="tdLabel_7">手术医师</td>
											<td align="left"><input type="text" class="input_box"
												name="operations[${s.index}].surgeryOfDoctorName"
												id="doctorFormControl-operations${s.index}surgeryOfDoctor"
												value="${operation.surgeryOfDoctorName}" />
												<div></div>
												<div id="operations${s.index}surgeryOfDoctorDiv"></div> <input
												type="hidden" id="operations${s.index}surgeryOfDoctorId"
												name="operations[${s.index}].surgeryOfDoctorId"
												readonly="readonly" value="${operation.surgeryOfDoctorId}" />

											</td>
											<td align="left" class="tdLabel_7">麻醉医师</td>
											<td align="left"><input type="text" class="input_box"
												name="operations[${s.index}].anaesthesiaOfDoctorName"
												id="doctorFormControl-operations${s.index}anaesthesiaOfDoctor"
												value="${operation.anaesthesiaOfDoctorName}" />
												<div></div>
												<div id="operations${s.index}anaesthesiaOfDoctorDiv"></div>
												<input type="hidden"
												id="operations${s.index}anaesthesiaOfDoctorId"
												name="operations[${s.index}].anaesthesiaOfDoctorId"
												readonly="readonly"
												value="${operation.anaesthesiaOfDoctorId}" /></td>
										</tr>
										<tr>
											<td align="left" class="tdLabel_7">Ⅰ助</td>
											<td align="left"><input type="text" class="input_box"
												name="operations[${s.index}].firstOpsAssistantName"
												id="doctorFormControl-operations${s.index}firstOpsAssistant"
												value="${operation.firstOpsAssistantName}" />
												<div></div>
												<div id="operations${s.index}firstOpsAssistantDiv"></div> <input
												type="hidden" id="operations${s.index}firstOpsAssistantId"
												name="operations[${s.index}].firstOpsAssistantId"
												readonly="readonly" value="${operation.firstOpsAssistantId}" />

											</td>
											<td align="left" class="tdLabel_7">Ⅱ助</td>
											<td align="left"><input type="text" class="input_box"
												name="operations[${s.index}].secondOpsAssistantName"
												id="doctorFormControl-operations${s.index}secondOpsAssistant"
												value="${operation.secondOpsAssistantName}" />
												<div></div>
												<div id="operations${s.index}secondOpsAssistantDiv"></div> <input
												type="hidden" id="operations${s.index}secondOpsAssistantId"
												name="operations[${s.index}].secondOpsAssistantId"
												readonly="readonly"
												value="${operation.secondOpsAssistantId}" /></td>
										</tr>
										<tr>
											<td class="tdLabel_7">手术经过</td>
											<td colspan="5"><br> <textarea rows="3" cols="100"
													name="operations[${s.index}].opsProcess">${operation.opsProcess }</textarea>
											</td>
										</tr>
										<tr>
											<td class="tdLabel_7">麻醉内容</td>
											<td colspan="5"><br> <textarea rows="3" cols="100"
													name="operations[${s.index}].anaesthesiaContent">${operation.anaesthesiaContent}</textarea>
											</td>
										</tr>
										<tr>
											<td class="tdLabel_7">病情摘要</td>
											<td colspan="5"><br> <textarea rows="3" cols="100"
													name="operations[${s.index}].otherMessage">${operation.otherMessage}</textarea>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</c:forEach>
					</div>


				</form>

				<!-- 选项卡end-->

			</div>
			<!--输血记录-->
			<div role="tabpanel" class="tab-pane" id="bloodTransfuse">
				<form
					action="${basePath}/medrecord/medrecordHomePageManageOfBloodTransfusionInfo"
					method="post" id="basicDataForm">
					
					<table width="100%" cellspacing="0" border="0" cellpadding="0">
						<tbody>
							<tr>
								<td align="left" colspan="6" class="dark">输血记录
									<div style="float:right">
										<input type="submit" value="保存" class="int">&nbsp;
									</div></td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7">输血次数</td>
								<td><input type="test" name="infusionBloodTimes"
									class="input_box" style="width:150px"
									value="${bloodTransfusionInfo.infusionBloodTimes}">
								</td>
								<td align="left" class="tdLabel_7">输血反应次数</td>
								<td><input type="test" name="infusionBloodReactTimes" class="input_box"
									style="width:150px"
									value="${bloodTransfusionInfo.infusionBloodReactTimes}">
								</td>

								<td align="left" class="tdLabel_7">输血总量</td>
								<td><input type="test" name="infusionBloodTotalVolume"
									class="input_box" style="width:150px"
									value="${bloodTransfusionInfo.infusionBloodTotalVolume}">
								</td>

							</tr>
						</tbody>
					</table>
					<input type="hidden" name="firstGuid"
						value="${hospitalizationNote.first_level_medical_guid}"> <input
						type="hidden"
						value="${fn:length(bloodTransfusionInfo.bloodTransfusions)}"
						id="bloodTransfuseCount" />
					<table style="width: 100%" id="bloodTransfuseList">
						<tbody>
							<tr>
								<td colspan="11" class="tdLabel_7">

									<div style="float:right">
										<span class="red" id="tsxx" style="display:none"> </span> <input
											type="button" value="新增" id="add_blood" onclick="addBlood()"
											class="btn">
									</div></td>
							</tr>
							<tr>
								<td width="8%">输血类型</td>
								<td width="10%">输血时间</td>
								<td width="6%">输血反应</td>
								<td width="6%">红细胞(单位)</td>
								<td width="6%">血小板(单位)</td>
								<td width="5%">血&nbsp;&nbsp;&nbsp;浆(ml)</td>
								<td width="5%">全&nbsp;&nbsp;&nbsp;血(ml)</td>
								<td width="5%">自体血(ml)</td>
								<td width="5%">白蛋白(g)</td>
								<td width="5%">其他</td>
								<td width="5%">操作</td>
							</tr>

							<c:forEach var="bloods"
								items="${bloodTransfusionInfo.bloodTransfusions}" varStatus="s">
								<tr>
									<td class="Label_2"><select
										name="bloodTransfusions[${s.index}].bloodTypeId">
											<option value="">==请选择==</option>
											<c:forEach var="bloodType"
												items="${basicInfos['bloodTypeList']}">
												<c:choose>
													<c:when test="${bloodType.id == bloods.bloodTypeId}">
														<option selected="selected" value="${bloodType.id }">${bloodType.name
															}</option>
													</c:when>
													<c:otherwise>
														<option value="${bloodType.id }">${bloodType.name
															}</option>
													</c:otherwise>
												</c:choose>
											</c:forEach>
									</select> <input type="hidden"
										name="bloodTransfusions[${s.index}].bloodTypeName"
										value="${bloods.bloodTypeName}" /></td>
									<td><input type="text"
										name="bloodTransfusions[${s.index}].bloodTransfusionDate"
										onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
										class="input_box" style="width: 150px"
										value="<fmt:formatDate value="${bloods.bloodTransfusionDate }" pattern="yyyy-MM-dd HH:mm:ss"/>">
									</td>
									<td style="width:8%"><input type="radio" class="radio_cl"
										name="bloodTransfusions[${s.index}].bloodTransfusionResponse"
										value="true"
										<c:if test="${true==bloods.bloodTransfusionResponse}">checked="checked"</c:if>>是
										<input class="radio_cl" type="radio"
										name="bloodTransfusions[${s.index}].bloodTransfusionResponse"
										value="false"
										<c:if test="${false==bloods.bloodTransfusionResponse}">checked="checked"</c:if>>否
									</td>
									<td><input type="text"
										name="bloodTransfusions[${s.index}].redBloodCellVolume"
										value="${bloods.redBloodCellVolume}" class="input_box"
										style="width:50px"></td>
									<td><input type="text"
										name="bloodTransfusions[${s.index}].thrombocyteVolume"
										value="${bloods.thrombocyteVolume}" class="input_box"
										style="width:50px"></td>
									<td><input type="text"
										name="bloodTransfusions[${s.index}].plasmaVolume"
										value="${bloods.plasmaVolume}" class="input_box"
										style="width:50px"></td>
									<td><input type="text"
										name="bloodTransfusions[${s.index}].wholeBloodVolume"
										value="${bloods.wholeBloodVolume}" class="input_box"
										style="width:50px"></td>
									<td><input type="text"
										name="bloodTransfusions[${s.index}].autoBloodVolume"
										value="${bloods.autoBloodVolume}" class="input_box"
										style="width:50px"></td>
									<td><input type="text"
										name="bloodTransfusions[${s.index}].albuminVolume"
										value="${bloods.albuminVolume}" class="input_box"
										style="width:50px"></td>
									<td><input type="text"
										name="bloodTransfusions[${s.index}].otherInfo"
										value="${bloods.otherInfo}" class="input_box"
										style="width:50px"></td>
									<td align="center"><a
										<c:if test="${s.index==0 }">hidden="true"</c:if>
										id="deleteBloodTransfusions${s.index}" class="int"
										onclick="del(this)">删除</a> <!-- <a class="int" id="deleteBloodTransfusions0">删除 </a> -->
									</td>
								</tr>


							</c:forEach>

						</tbody>
					</table>
				</form>
			</div>
			<!--转科记录-->
			<div role="tabpanel" class="tab-pane" id="transferNote">
				<form
					action="${basePath}/medrecord/medrecordHomePageManageOfChangeOfficeInfo"
					method="post" id="basicDataForm">
					<input type="hidden" name="firstGuid"
						value="${hospitalizationNote.first_level_medical_guid}"> <input
						type="hidden"
						value="${fn:length(hospitalChangeOfficeInfo.hospitalizationChangeOffices)}"
						id="changeOfficeCount" />
					<table width="100%" cellspacing="0" border="0" cellpadding="0">
						<tbody>
							<tr>
								<td colspan="11" class="tdLabel_7">

									<div style="float:right">
										<input type="submit" value="保存" class="btn"> <input
											type="button" value="新增" id="add_transferNote"
											onclick="addTransferNote()" class="btn">
									</div></td>
							</tr>
							<tr>
								<td width="7%">转入科室</td>
								<td width="7%">转出科室</td>
								<td width="7%">转科时间</td>
								<td>转往原因</td>
								<td width="7%">操作</td>
							</tr>

							<c:forEach var="changeOffice"
								items="${hospitalChangeOfficeInfo.hospitalizationChangeOffices }"
								varStatus="s">
								<tr>
									<td><select
										name="hospitalizationChangeOffices[${s.index }].inOfficeId"
										style="width: 200px">
											<option value="">==请选择==</option>
											<c:forEach var="office" items="${basicInfos['offices']}">
												<c:choose>
													<c:when test="${office.id == changeOffice.inOfficeId}">
														<option selected="selected" value="${office.id }">${office.name
															}</option>
													</c:when>
													<c:otherwise>
														<option value="${office.id }">${office.name }</option>
													</c:otherwise>
												</c:choose>

											</c:forEach>
									</select> <input type="hidden"
										name="hospitalizationChangeOffices[${s.index }].inOfficeName"
										value="${changeOffice.inOfficeName}" /></td>
									<td><select
										name="hospitalizationChangeOffices[${s.index }].outOfficeId"
										style="width: 200px">
											<option value="">==请选择==</option>
											<c:forEach var="office" items="${basicInfos['offices']}">
												<c:choose>
													<c:when test="${office.id == changeOffice.outOfficeId}">
														<option selected="selected" value="${office.id }">${office.name
															}</option>
													</c:when>
													<c:otherwise>
														<option value="${office.id }">${office.name }</option>
													</c:otherwise>
												</c:choose>

											</c:forEach>
									</select> <input type="hidden"
										name="hospitalizationChangeOffices[${s.index }].outOfficeName"
										value="${changeOffice.outOfficeName}" /></td>
									<td><input type="text"
										name="hospitalizationChangeOffices[${s.index }].changeOfficeDate"
										value="<fmt:formatDate value="${changeOffice.changeOfficeDate }" pattern="yyyy-MM-dd"/>"
										onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
										class="input_box" style="width: 160px"></td>
									<td><input type="text"
										name="hospitalizationChangeOffices[${s.index }].changeOfficeRemarks"
										value="${changeOffice.changeOfficeRemarks }" class="input_box"
										style="width: 250px"></td>
									<td align="center"><a
										<c:if test="${s.index==0 }">hidden="true"</c:if>
										id="deleteChangeOffice${s.index }" class="int"
										onclick="del(this)">删除</a>
									</td>
								</tr>

							</c:forEach>
						</tbody>
					</table>
				</form>
			</div>
			<!--过敏药物-->
			<div role="tabpanel" class="tab-pane" id="allergyDrug">
				<form method="post"
					action="${basePath }/medrecord/medrecordHomePageManageOfDrugAllergyInfo">
					<input type="hidden" name="firstGuid"
						value="${hospitalizationNote.first_level_medical_guid}"> <input
						type="hidden" id="drugAllergyRecordCount"
						value="${fn:length(hospitalizationDrugAllergyInfo.drugAllergyRecords) }" />
					<table width="100%" cellspacing="0" border="0" cellpadding="0"
						id="drugAllergyRecordsTable">
						<thead>
							<tr>
								<td colspan="11" class="tdLabel_7">

									<div style="float:right">
										<input type="submit" value="保存" class="btn"> <input
											type="button" value="新增" onclick="add_drugAllergyRecord()"
											class="btn">
									</div></td>
							</tr>
							<tr>
								<td width="20%">过敏药物编码</td>
								<td width="67%">过敏药物名称</td>
								<td width="13%">操作</td>
							</tr>
						</thead>
						<tbody>
							<c:forEach var="drugAllergyRecord"
								items="${hospitalizationDrugAllergyInfo.drugAllergyRecords }"
								varStatus="index">
								<tr>
									<td><select
										name="drugAllergyRecords[${index.index }].drugAllergyTypeId"
										data-select="drugAllergyType" style="width:80%">
											<option value="">---请选择---</option>
											<c:forEach items="${basicInfos['drugAllergyTypes'] }"
												var="drugAllergyType">
												<c:choose>
													<c:when
														test="${drugAllergyType.id == drugAllergyRecord.drugAllergyTypeId}">
														<option value="${drugAllergyType.id }" selected="selected">${drugAllergyType.name
															}</option>
													</c:when>
													<c:otherwise>
														<option value="${drugAllergyType.id }">${drugAllergyType.name
															}</option>
													</c:otherwise>
												</c:choose>

											</c:forEach>
									</select> <input type="hidden" data-select="drugAllergyTypeNameHidden"
										name="drugAllergyRecords[${index.index }].drugAllergyTypeName"
										value="${drugAllergyRecord.drugAllergyTypeName }"></td>
									<td><input
										name="drugAllergyRecords[${index.index }].drugAllergyName"
										value="${drugAllergyRecord.drugAllergyName }"
										class="input_box" style="width:500px"></td>
									<td align="center"><a class="int"
										onclick="delete_drugAllergyRecord(this)">删除 </a></td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</form>
			</div>
			<!--重症监护-->
			<div role="tabpanel" class="tab-pane" id="IC">
				<form method="post"
					action="${basePath }/medrecord/medrecordHomePageManageOfIntensiveCareRecordInfo">
					<input type="hidden" name="firstGuid"
						value="${hospitalizationNote.first_level_medical_guid}"> <input
						type="hidden" id="intensiveCareRecordCount"
						value="${fn:length(hospitalizationIntensiveCareInfo.intensiveCareRecords) }" />
					<table width="100%" cellspacing="0" border="0" cellpadding="0">
						<tbody>
							<tr>
								<td colspan="7" class="right" style="border:none"><input
									type="button" value="删除" class="int"
									onclick="delete_intensiveCareRecord()"> <input
									type="button" value="新增" onclick="add_intensiveCareRecord()"
									class="int"> <input type="submit" value="保存"
									class="int"></td>
							</tr>
						</tbody>
					</table>
					<div class="bg_danlanColor">
						<ul class="bg_danlanColor margin0 clearfix" id="icu_ul">
							<c:forEach var="intensiveCareRecord"
								items="${hospitalizationIntensiveCareInfo.intensiveCareRecords }"
								varStatus="index">
								<li data-index="${index.index }">记录${index.index+1}</li>
							</c:forEach>
						</ul>
					</div>
					<div class="content" id="icu_records_div">
						<c:forEach var="intensiveCareRecord"
							items="${hospitalizationIntensiveCareInfo.intensiveCareRecords }"
							varStatus="index">
							<div class="layout" id="icu_records_div${index.index }">
								<table width="100%" cellspacing="0" border="0" cellpadding="0">
									<tbody>
										<tr>
											<td class="tdLabel_7" width="20%">ICU类型</td>
											<td width="22%"><select
												name="intensiveCareRecords[${index.index }].iCUTypeId"
												style="width:90%">

													<option value="">---请选择---</option>
													<c:forEach var="iCUType" items="${basicInfos['iCUTypes'] }">
														<c:choose>
															<c:when
																test="${iCUType.id == intensiveCareRecord.iCUTypeId }">
																<option selected="selected" value="${iCUType.id }">${iCUType.name
																	}</option>
															</c:when>
															<c:otherwise>
																<option value="${iCUType.id }">${iCUType.name }</option>
															</c:otherwise>
														</c:choose>

													</c:forEach>
											</select> <input type="hidden"
												name="intensiveCareRecords[${index.index }].iCUTypeName"
												value="${intensiveCareRecord.iCUTypeName }" /></td>
											<td class="tdLabel_7" width="7%">进入时间</td>
											<td width="22%"><fmt:formatDate var="inICUDateTime"
													value="${intensiveCareRecord.inICUDateTime}"
													pattern="yyyy-MM-dd HH:mm:ss" /> <input type="text"
												name="intensiveCareRecords[${index.index }].inICUDateTime"
												value="${inICUDateTime }"
												onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
												class="input_box"></td>
											<td class="tdLabel_7" width="7%">退出时间</td>
											<td width="22%"><fmt:formatDate var="outICUDateTime"
													value="${intensiveCareRecord.outICUDateTime}"
													pattern="yyyy-MM-dd HH:mm:ss" /> <input type="text"
												name="intensiveCareRecords[${index.index }].outICUDateTime"
												value="${outICUDateTime }"
												onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
												class="input_box"></td>
										</tr>
										<tr>
											<td class="tdLabel_7">计划再次入住ICU</td>
											<td><c:choose>
													<c:when test="${intensiveCareRecord.reICUPlan}">
														<input type="radio" class="radio_cl"
															name="intensiveCareRecords[${index.index }].reICUPlan"
															checked="checked" value="true">是
												<input type="radio" class="radio_cl"
															name="intensiveCareRecords[${index.index }].reICUPlan"
															value="false">否
												</c:when>
													<c:otherwise>
														<input type="radio" class="radio_cl"
															name="intensiveCareRecords[${index.index }].reICUPlan"
															value="true">是
												<input type="radio" class="radio_cl"
															name="intensiveCareRecords[${index.index }].reICUPlan"
															checked="checked" value="false">否
												</c:otherwise>
												</c:choose></td>
											<td class="tdLabel_7">APACHEII评分</td>
											<td><input type="text"
												name="intensiveCareRecords[${index.index }].apacheScore"
												value="${intensiveCareRecord.apacheScore }"
												class="input_box" style="width: 150px">
											</td>
											<td class="tdLabel_7">患者死亡</td>
											<td><c:choose>
													<c:when test="${intensiveCareRecord.iCUDeath}">
														<input type="radio" class="radio_cl"
															name="intensiveCareRecords[${index.index }].iCUDeath"
															checked="checked" value="1">是<input type="radio"
															class="radio_cl"
															name="intensiveCareRecords[${index.index }].iCUDeath"
															value="0">否
													</c:when>
													<c:otherwise>
														<input type="radio" class="radio_cl"
															name="intensiveCareRecords[${index.index }].iCUDeath"
															value="true">是<input type="radio"
															class="radio_cl"
															name="intensiveCareRecords[${index.index }].iCUDeath"
															value="false" checked="checked">否
													</c:otherwise>
												</c:choose></td>
										</tr>
										<tr>
											<td class="tdLabel_7">计划再次入住原因</td>
											<td colspan="5"><textarea
													name="intensiveCareRecords[${index.index }].reICUComment"
													style="width: 625px; height: 47px;">${intensiveCareRecord.reICUComment }</textarea>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</c:forEach>
					</div>

				</form>
			</div>
			<!--护理记录-->
			<div role="tabpanel" class="tab-pane" id="nursesNote">
				<form method="post"
					action="${basePath }/medrecord/medrecordHomePageManageOfHospitalizationNurseRecord">
					<input type="hidden" name="firstGuid"
						value="${hospitalizationNote.first_level_medical_guid}">
					<table width="100%" cellspacing="0" border="0" cellpadding="0">
						<tbody>
							<tr>
								<td align="left" colspan="6" class="dark">护理天数
									<div style="float:right">
										<input type="submit" value="保存" class="int">&nbsp;
									</div></td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7">病危天数</td>
								<td><input type="test" name="criticalOfDay"
									class="input_box" style="width:150px"
									value="${hospitalizationNurseRecordInfo.criticalOfDay}">
								</td>
								<td align="left" class="tdLabel_7">病重天数</td>
								<td><input type="test" name="sickOfDay" class="input_box"
									style="width:150px"
									value="${hospitalizationNurseRecordInfo.sickOfDay}">
								</td>

								<td align="left" class="tdLabel_7">特级护理天数</td>
								<td><input type="test" name="specialNurseOfDay"
									class="input_box" style="width:150px"
									value="${hospitalizationNurseRecordInfo.specialNurseOfDay}">
								</td>

							</tr>
							<tr>
								<td align="left" class="tdLabel_7">一级护理天数</td>
								<td><input type="test" name="firstLevelNurseOfDay"
									class="input_box" style="width:150px"
									value="${hospitalizationNurseRecordInfo.firstLevelNurseOfDay}">
								</td>
								<td align="left" class="tdLabel_7">二级护理天数</td>
								<td><input type="test" name="secondLevelNurseOfDay"
									class="input_box" style="width:150px"
									value="${hospitalizationNurseRecordInfo.secondLevelNurseOfDay}">
								</td>
								<td align="left" class="tdLabel_7">三级护理天数</td>
								<td><input type="test" name="threeLevelNurseOfDay"
									class="input_box" style="width:150px"
									value="${hospitalizationNurseRecordInfo.threeLevelNurseOfDay}">
								</td>
							</tr>
							
							<tr>
								<td align="left" class="tdLabel_7">ICU天数</td>
								<td><input type="test" name="ICUNurseOfDay"
									class="input_box" style="width:150px"
									value="${hospitalizationNurseRecordInfo.ICUNurseOfDay}">
								</td>
								<td align="left" class="tdLabel_7">CCU天数</td>
								<td><input type="test" name="CCUNurseOfDay"
									class="input_box" style="width:150px"
									value="${hospitalizationNurseRecordInfo.CCUNurseOfDay}">
								</td>
								
							</tr>
						</tbody>
					</table>
					<br>
					<div>
						<ul class="bg_danlanColor margin0 clearfix">
							<li class="menuli selected" id="jl_yc">护理记录单</li>
						</ul>
					</div>
					<div class="formWrapper">
						<input type="hidden" id="nurseRecordCount"
							value="${fn:length(hospitalizationNurseRecordInfo.nurseRecords) }">
						<table id="nurseRecordsTable" width="100%" cellspacing="0"
							border="0" cellpadding="0">
							<thead>
								<tr>
									<td colspan="4" style="border:none;">
										<div style="float:right">
											<input type="button" value="新增" onclick="add_nurseRecord()"
												class="int">

										</div></td>
								</tr>
								<tr>
									<td width="20%">时间</td>
									<td width="60%">记录</td>
									<td width="10%">签名</td>
									<td width="10%">操作</td>
								</tr>
							</thead>

							<tbody>


								<c:forEach var="nurseRecord"
									items="${hospitalizationNurseRecordInfo.nurseRecords}"
									varStatus="index">
									<tr class="dark">
										<td><fmt:formatDate var="nurseDateTime"
												value="${nurseRecord.nurseDateTime}"
												pattern="yyyy-MM-dd HH:mm:ss" /> <input
											name="nurseRecords[${index.index}].nurseDateTime"
											value="${nurseDateTime }" type="text"
											onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
											class="input_box"></td>
										<td><input
											name="nurseRecords[${index.index}].nurseContent" type="text"
											value="${nurseRecord.nurseContent }" class="input_box">
										</td>
										<td><input
											name="nurseRecords[${index.index}].nurserSignature"
											class="input_box" type="text"
											value="${nurseRecord.nurserSignature }"></td>
										<td align="center"><a class="int"
											onclick="delete_nurseRecord(this)">删除</a></td>
									</tr>
								</c:forEach>
								<!--  -->
							</tbody>
						</table>
					</div>
				</form>
			</div>
			<!--压疮记录-->
			<div role="tabpanel" class="tab-pane" id="PressureUlcerRecord">
				<form method="post" action="${basePath }/medrecord/medrecordHomePageManageOfPressureSoreInfo">
					<input type="hidden" name="firstGuid"
						value="${hospitalizationNote.first_level_medical_guid}"> <input
						type="hidden" id="pressureSoreRecordCount" value="${fn:length(hospitalizationPressureSoreInfo.pressureSoreRecords) }" />

					<table width="100%" cellspacing="0" border="0" cellpadding="0">
						<tbody>
							<tr>
								<td align="left" colspan="6" class="dark">护理天数
									<div style="float:right">
										<input type="submit" value="保存" class="int">&nbsp;
									</div></td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7">发生褥疮次数</td>
								<td><input type="test" name="pressureSoreTimes"
									class="input_box" style="width:150px"
									value="${hospitalizationPressureSoreInfo.pressureSoreTimes}">
								</td>
							</tr>
							
							
							
						</tbody>
					</table>
					<table width="100%" cellspacing="0" border="0" cellpadding="0"
						id="pressureSoreRecordsTable">
						<thead>
							<tr>
								<td colspan="6" style="border:none;">
									<div style="float:right">
										<input type="button" value="新增"
											onclick="add_pressureSoreRecord()" class="int">

									</div></td>
							</tr>
							<tr>
								<td width="20%">发生时间</td>
								<td width="15%">压疮来源</td>
								<td width="10%">压疮分期</td>
								<td width="30%">压疮部位</td>
								<td width="20%">填报时间</td>
								<td width="5%">操作</td>
							</tr>
						</thead>
						<tbody>
							<c:forEach var="pressureSoreRecord" items="${hospitalizationPressureSoreInfo.pressureSoreRecords }" varStatus="index">
								<tr>
									<td>
									<fmt:formatDate var="occurDateTime" value="${pressureSoreRecord.occurDateTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
									<input name="pressureSoreRecords[${index.index }].occurDateTime"
										value="${occurDateTime }" type="text"
										onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
										class="input_box"></td>
									<td><select name="pressureSoreRecords[${index.index }].pressureSoreCradleId" data-select="pressureSoreCradle">
											<option value="">---请选择---</option>
											<c:forEach var="pressureSoreCradle"
												items="${basicInfos['pressureSoreCradles'] }">
												<c:choose>
													<c:when test="${pressureSoreRecord.pressureSoreCradleId == pressureSoreCradle.id}">
														<option value="${pressureSoreCradle.id }" selected="selected">${pressureSoreCradle.name}
													</c:when>
													<c:otherwise>
														<option value="${pressureSoreCradle.id }">${pressureSoreCradle.name}
													</c:otherwise>
												</c:choose>
												
												</option>
											</c:forEach>
				
									</select>
									<input value="${pressureSoreRecord.pressureSoreCradleName }" type="hidden" data-select="pressureSoreCradleNameHidden" name="pressureSoreRecords[${index.index }].pressureSoreCradleName">
									</td>
									<td><select name="pressureSoreRecords[${index.index }].pressureSorePhaseId" data-select="pressureSorePhase">
											<option value="">---请选择---</option>
											<c:forEach var="pressureSorePhase"
												items="${basicInfos['pressureSorePhases'] }">
												
												<c:choose>
													<c:when test="${pressureSoreRecord.pressureSorePhaseId == pressureSorePhase.id}">
														<option value="${pressureSorePhase.id }" selected="selected">${pressureSorePhase.name}
													</c:when>
													<c:otherwise>
														<option value="${pressureSorePhase.id }">${pressureSorePhase.name}
													</c:otherwise>
												</c:choose>
												
												
											</c:forEach>
									</select>
									<input value="${pressureSoreRecord.pressureSorePhaseName }" type="hidden" data-select="pressureSorePhaseNameHidden" name="pressureSoreRecords[${index.index }].pressureSorePhaseName">
									</td>
									<td><select name="pressureSoreRecords[${index.index }].pressureSorePartIds"
										multiple="multiple" data-multiple="data-multiple" data-select-multi="pressureSorePart">
				
											<c:forEach var="pressureSorePart"
												items="${basicInfos['pressureSoreParts'] }">
												<c:set value="false" var="pressureSorePartExist"/>
												<c:forEach var="savePressureSorePartId" items="${pressureSoreRecord.pressureSorePartIds }">
													<c:if test="${savePressureSorePartId == pressureSorePart.id}">
														<c:set value="true" var="pressureSorePartExist"/>
													</c:if>
												</c:forEach>
												<c:choose>
													<c:when test="${pressureSorePartExist == true}">
														<option value="${pressureSorePart.id }" selected="selected">${pressureSorePart.name}</option>
													</c:when>
													<c:otherwise>
														<option value="${pressureSorePart.id }">${pressureSorePart.name}</option>
													</c:otherwise>
												</c:choose>
												
											</c:forEach>
									</select>
									
									<input value="${pressureSoreRecord.pressureSorePartNames }" type="hidden" data-select-multi="pressureSorePartNamesHidden" name="pressureSoreRecords[${index.index }].pressureSorePartNames">
									</td>
									<td>
										<fmt:formatDate var="registerDateTime" value="${pressureSoreRecord.registerDateTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
									<input name="pressureSoreRecords[${index.index }].registerDateTime"
										value="${registerDateTime }" type="text"
										onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
										class="input_box"></td>
									<td align="center"><a class="int"
										onclick="delete_pressureSoreRecord(this)">删除</a></td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</form>
			</div>

			<!--产科记录-->
			<div role="tabpanel" class="tab-pane" id="obstetricalRecord">
				<form
					action="${basePath}/medrecord/medrecordHomePageManageOfobstetricalRecordInfo"
					method="post">
					<input type="hidden" name="firstGuid"
						value="${hospitalizationNote.first_level_medical_guid}">
					<table width="100%" cellspacing="0" border="0" cellpadding="0">
						<tbody>
							<tr>
								<td colspan="9" style="border:none;">
									<div style="float:right">
										<input type="button" id="del_obstetricalRecord"
											onclick="delObstetricalRecord()" value="删除" class="int">
										<input type="button" id="add_obstetricalRecord"
											onclick="addObstetricalRecord()" value="新增" class="int">
										<input type="submit" value="保存" class="int"> &nbsp;
									</div></td>
							</tr>
						</tbody>
					</table>
					<div class="bg_danlanColor clearfix" style="color:#333">
						<ul class="bg_danlanColor margin0 clearfix"
							id="obstetricalRecord_li">
							<c:forEach items="${obstetricalRecordInfo.obstetricalRecords }"
								varStatus="s">
								<li <c:if test="${s.index==0 }">class="selected"</c:if>
									data-index="${s.index }">记录${s.index+1}</li>
							</c:forEach>

						</ul>
					</div>
					<input type="hidden" id="obstetricalRecordCount"
						value="${fn:length(obstetricalRecordInfo.obstetricalRecords) }">
					<div class="content" id="obstetricalRecord_content">
						<c:forEach var="obestetricalRecord"
							items="${obstetricalRecordInfo.obstetricalRecords }"
							varStatus="s">
							<div class="layout"
								<c:if test="${s.index!=0 }">style="display:none"</c:if>
								id="obestetricalRecord${s.index }">
								<table width="100%" cellspacing="0" cellpadding="0">
									<tbody>
										<tr>
											<td align="left" class="tdLabel_7">孕周</td>
											<td align="left"><input type="text"
												name="obstetricalRecords[${s.index }].gestationalWeeks"
												style="width:150px"
												value="${obestetricalRecord.gestationalWeeks}"
												class="input_box"></td>
											<td align="left" class="tdLabel_7">胎位</td>
											<td align="left"><select style="width:95%"
												name="obstetricalRecords[${s.index }].fetusPositionId">
													<option value="">=请选择=</option>
													<c:forEach var="fetusPosition"
														items="${basicInfos['fetusPositionList']}">
														<c:choose>
															<c:when
																test="${fetusPosition.id==obestetricalRecord.fetusPositionId}">
																<option value="${fetusPosition.id}" selected="selected">${fetusPosition.name}</option>
															</c:when>
															<c:otherwise>
																<option value="${fetusPosition.id}">${fetusPosition.name}</option>
															</c:otherwise>
														</c:choose>

													</c:forEach>
											</select> <input type="hidden"
												name="obstetricalRecords[${s.index }].fetusPositionName"
												value="${obestetricalRecord.fetusPositionName }" /></td>
											<td align="left" class="tdLabel_7">分娩方式</td>
											<td align="left"><select
												name="obstetricalRecords[${s.index }].childBirthId">
													<option value="">=请选择=</option>
													<c:forEach var="childBearing"
														items="${basicInfos['childBearList']}">
														<c:choose>
															<c:when
																test="${childBearing.id==obestetricalRecord.childBirthId}">
																<option value="${childBearing.id}" selected="selected">${childBearing.name}</option>
															</c:when>
															<c:otherwise>
																<option value="${childBearing.id}">${childBearing.name}</option>
															</c:otherwise>
														</c:choose>

													</c:forEach>
											</select> <input type="hidden"
												name="obstetricalRecords[${s.index }].childBirthName"
												value="${obestetricalRecord.childBirthName }" /></td>
										</tr>
										<tr>
											<td align="left" class="tdLabel_7">性别</td>
											<td align="left"><select
												name="obstetricalRecords[${s.index }].sexId">
													<option value="">=请选择=</option>
													<c:forEach var="sex" items="${basicInfos['sexes']}">
														<c:choose>
															<c:when test="${sex.id==obestetricalRecord.sexId}">
																<option value="${sex.id}" selected="selected">${sex.name}</option>
															</c:when>
															<c:otherwise>
																<option value="${sex.id}">${sex.name}</option>
															</c:otherwise>
														</c:choose>

													</c:forEach>
											</select> <input type="hidden"
												name="obstetricalRecords[${s.index }].sexName"
												value="${obestetricalRecord.sexName }" /></td>
											<td align="left" class="tdLabel_7">新生儿AGP评分</td>
											<td align="left" colspan="3"><input type="text"
												name="obstetricalRecords[${s.index }].neonateAgpScore"
												style="width: 150px"
												value="${obestetricalRecord.neonateAgpScore}"
												class="input_box"></td>
										</tr>
										<tr>
											<td align="left" class="tdLabel_7" width="14%">新生儿出生时间</td>
											<td align="left" width="18%"><input type="text"
												name="obstetricalRecords[${s.index }].neonateBornDate"
												onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
												value="<fmt:formatDate value="${obestetricalRecord.neonateBornDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
												class="input_box" style="width: 150px"></td>
											<td align="left" class="tdLabel_7" width="14%">新生儿出生体重</td>
											<td align="left" width="18%"><input type="text"
												name="obstetricalRecords[${s.index }].neonateBornWeight"
												value="${obestetricalRecord.neonateBornWeight}"
												class="input_box" style="width: 150px">g</td>
											<td align="left" class="tdLabel_7" width="14%">新生儿出生身长</td>
											<td align="left" width="18%"><input type="text"
												name="obstetricalRecords[${s.index }].neonateBornHeight"
												value="${obestetricalRecord.neonateBornHeight}"
												class="input_box" style="width: 120px">cm</td>
										</tr>
										<tr>
											<td align="left" class="tdLabel_7">新生儿产伤</td>
											<td align="left"><input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].neonateBirthInjury"
												<c:if test="${true==obestetricalRecord.neonateBirthInjury}">checked="checked"</c:if>
												value="true">是&nbsp;&nbsp; <input type="radio"
												class="radio_cl"
												name="obstetricalRecords[${s.index }].neonateBirthInjury"
												<c:if test="${false==obestetricalRecord.neonateBirthInjury}">checked="checked"</c:if>
												value="false">否</td>
											<td align="left" width="" class="tdLabel_7">新生儿死亡时间</td>
											<td align="left" colspan="3"><input type="text"
												name="obstetricalRecords[${s.index }].neonateDeathDate"
												onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
												value="<fmt:formatDate value="${obestetricalRecord.neonateDeathDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
												class="input_box" style="width: 150px">
											</td>
										</tr>
										<tr>
											<td align="left" width="" class="tdLabel_7">听力筛查</td>
											<td><input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].hearingScreening"
												value="true"
												<c:if test="${true==obestetricalRecord.hearingScreening}">checked="checked"</c:if>>是&nbsp;&nbsp;
												<input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].hearingScreening"
												value="false"
												<c:if test="${false==obestetricalRecord.hearingScreening}">checked="checked"</c:if>>否
											</td>
											<td align="left" width="" class="tdLabel_7">甲状腺功能低下筛查</td>
											<td align="left"><input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].hypothyroidism"
												value="true"
												<c:if test="${true==obestetricalRecord.hypothyroidism}">checked="checked"</c:if>>是&nbsp;&nbsp;
												<input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].hypothyroidism"
												value="false"
												<c:if test="${false==obestetricalRecord.hypothyroidism}">checked="checked"</c:if>>否
											</td>
											<td align="left" width="" class="tdLabel_7">苯丙酮尿酸检查</td>
											<td align="left"><input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].phenylketonuria"
												value="true"
												<c:if test="${true==obestetricalRecord.phenylketonuria}">checked="checked"</c:if>>是&nbsp;&nbsp;
												<input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].phenylketonuria"
												value="false"
												<c:if test="${false==obestetricalRecord.phenylketonuria}">checked="checked"</c:if>>否
											</td>
										</tr>
										<tr>
											<td align="left" width="" class="tdLabel_7">唐氏综合症筛查</td>
											<td><input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].downSyndromeTest"
												value="true"
												<c:if test="${true==obestetricalRecord.downSyndromeTest}">checked="checked"</c:if>>是&nbsp;&nbsp;
												<input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].downSyndromeTest"
												value="false"
												<c:if test="${false==obestetricalRecord.downSyndromeTest}">checked="checked"</c:if>>否
											</td>
											<td align="left" class="tdLabel_7">卡介苗预防接种</td>
											<td align="left"><input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].bcgVaccination"
												value="true"
												<c:if test="${true==obestetricalRecord.bcgVaccination}">checked="checked"</c:if>>是&nbsp;&nbsp;
												<input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].bcgVaccination"
												value="false"
												<c:if test="${false==obestetricalRecord.bcgVaccination}">checked="checked"</c:if>>否
											</td>
											<td align="left" class="tdLabel_7">乙肝疫苗预防接种</td>
											<td align="left"><input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].hepatitisBVaccine"
												value="true"
												<c:if test="${true==obestetricalRecord.hepatitisBVaccine}">checked="checked"</c:if>>是&nbsp;&nbsp;
												<input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].hepatitisBVaccine"
												value="false"
												<c:if test="${false==obestetricalRecord.hepatitisBVaccine}">checked="checked"</c:if>>否
											</td>
										</tr>
										<tr>
											<td align="left" width="" class="tdLabel_7">视网膜筛查</td>
											<td><input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].retinalScreening"
												value="true"
												<c:if test="${true==obestetricalRecord.retinalScreening}">checked="checked"</c:if>>是&nbsp;&nbsp;
												<input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].retinalScreening"
												value="false"
												<c:if test="${false==obestetricalRecord.retinalScreening}">checked="checked"</c:if>>否
											</td>
											<td align="left" width="" class="tdLabel_7">氢孕酮检测</td>
											<td align="left"><input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].hydrogenProgesterone"
												value="true"
												<c:if test="${true==obestetricalRecord.hydrogenProgesterone}">checked="checked"</c:if>>是&nbsp;&nbsp;
												<input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].hydrogenProgesterone"
												value="false"
												<c:if test="${false==obestetricalRecord.hydrogenProgesterone}">checked="checked"</c:if>>否
											</td>
											<td align="left" width="" class="tdLabel_7">葡萄糖磷酸</td>
											<td align="left"><input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].glucosePhosphate"
												value="true"
												<c:if test="${true==obestetricalRecord.glucosePhosphate}">checked="checked"</c:if>>是&nbsp;&nbsp;
												<input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].glucosePhosphate"
												value="false"
												<c:if test="${false==obestetricalRecord.glucosePhosphate}">checked="checked"</c:if>>否
											</td>
										</tr>
										<tr>
											<td align="left" width="" class="tdLabel_7">脱氢酶检查</td>
											<td><input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].dehydrogenaseAssay"
												value="true"
												<c:if test="${true==obestetricalRecord.dehydrogenaseAssay}">checked="checked"</c:if>>是&nbsp;&nbsp;
												<input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].dehydrogenaseAssay"
												value="false"
												<c:if test="${false==obestetricalRecord.dehydrogenaseAssay}">checked="checked"</c:if>>否
											</td>
											<td align="left" width="" class="tdLabel_7">串联质谱检测</td>
											<td align="left"><input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].tandemMsTest"
												value="true"
												<c:if test="${true==obestetricalRecord.tandemMsTest}">checked="checked"</c:if>>是&nbsp;&nbsp;
												<input type="radio" class="radio_cl"
												name="obstetricalRecords[${s.index }].tandemMsTest"
												value="false"
												<c:if test="${false==obestetricalRecord.tandemMsTest}">checked="checked"</c:if>>否
											</td>
											<td align="left" class="tdLabel_7">产后出血</td>
											<td align="left"><input type="text"
												name="obstetricalRecords[${s.index }].flooding"
												value="${obestetricalRecord.flooding}" class="input_box"
												style="width:150px"></td>

										</tr>

										<tr>
											<td align="left" class="tdLabel_7">新生儿疾病-1</td>
											<td align="left" colspan="5"><input type="text"
												class="input_box" style="width:350px"
												id="neonateDiseaseFormControl-${s.index}1"
												<c:if test='${obestetricalRecord.neonateDiseaseCode1 !=null and obestetricalRecord.neonateDiseaseCode1!=""}'>value="${obestetricalRecord.neonateDiseaseCode1}-${obestetricalRecord.neonateDiseaseName1}"</c:if> />
												<div></div>
												<div id="search_suggest${s.index }1"></div> <input
												type="hidden" id="neonateDiseaseCode${s.index }1"
												name="obstetricalRecords[${s.index }].neonateDiseaseCode1"
												value="${ obestetricalRecord.neonateDiseaseCode1}">
												<input type="hidden" id="neonateDiseaseName${s.index }1"
												name="obstetricalRecords[${s.index }].neonateDiseaseName1"
												value="${obestetricalRecord.neonateDiseaseName1}"></td>
										</tr>
										<tr>
											<td align="left" class="tdLabel_7">新生儿疾病-2</td>
											<td align="left" colspan="5"><input type="text"
												class="input_box" style="width:350px"
												id="neonateDiseaseFormControl-${s.index}2"
												<c:if test='${obestetricalRecord.neonateDiseaseCode2 !=null and obestetricalRecord.neonateDiseaseCode2!=""}'>value="${obestetricalRecord.neonateDiseaseCode2}-${obestetricalRecord.neonateDiseaseName2}"</c:if> />
												<div></div>
												<div id="search_suggest${s.index }2"></div> <input
												type="hidden" id="neonateDiseaseCode${s.index }2"
												name="obstetricalRecords[${s.index }].neonateDiseaseCode2"
												value="${ obestetricalRecord.neonateDiseaseCode2}">
												<input type="hidden" id="neonateDiseaseName${s.index }2"
												name="obstetricalRecords[${s.index }].neonateDiseaseName2"
												value="${obestetricalRecord.neonateDiseaseName2}"></td>
										</tr>
										<tr>
											<td align="left" class="tdLabel_7">新生儿疾病-3</td>
											<td align="left" colspan="5"><input type="text"
												class="input_box" style="width:350px"
												id="neonateDiseaseFormControl-${s.index}3"
												<c:if test='${obestetricalRecord.neonateDiseaseCode3 !=null and obestetricalRecord.neonateDiseaseCode3!=""}'>value="${obestetricalRecord.neonateDiseaseCode3}-${obestetricalRecord.neonateDiseaseName3}"</c:if> />
												<div></div>
												<div id="search_suggest${s.index }3"></div> <input
												type="hidden" id="neonateDiseaseCode${s.index }3"
												name="obstetricalRecords[${s.index }].neonateDiseaseCode3"
												value="${ obestetricalRecord.neonateDiseaseCode3}">
												<input type="hidden" id="neonateDiseaseName${s.index }3"
												name="obstetricalRecords[${s.index }].neonateDiseaseName3"
												value="${obestetricalRecord.neonateDiseaseName3}"></td>
										</tr>
										<tr>
											<td align="left" class="tdLabel_7">新生儿疾病-4</td>
											<td align="left" colspan="5"><input type="text"
												class="input_box" style="width:350px"
												id="neonateDiseaseFormControl-${s.index}4"
												<c:if test='${obestetricalRecord.neonateDiseaseCode4 !=null and obestetricalRecord.neonateDiseaseCode4!=""}'>value="${obestetricalRecord.neonateDiseaseCode4}-${obestetricalRecord.neonateDiseaseName4}"</c:if> />
												<div></div>
												<div id="search_suggest${s.index }4"></div> <input
												type="hidden" id="neonateDiseaseCode${s.index }4"
												name="obstetricalRecords[${s.index }].neonateDiseaseCode4"
												value="${ obestetricalRecord.neonateDiseaseCode4}">
												<input type="hidden" id="neonateDiseaseName${s.index }4"
												name="obstetricalRecords[${s.index }].neonateDiseaseName4"
												value="${obestetricalRecord.neonateDiseaseName4}"></td>
										</tr>
										<tr>
											<td align="left" class="tdLabel_7">新生儿疾病-5</td>
											<td align="left" colspan="5"><input type="text"
												class="input_box" style="width:350px"
												id="neonateDiseaseFormControl-${s.index}5"
												<c:if test='${obestetricalRecord.neonateDiseaseCode5 !=null and obestetricalRecord.neonateDiseaseCode5!=""}'>value="${obestetricalRecord.neonateDiseaseCode5}-${obestetricalRecord.neonateDiseaseName5}"</c:if> />
												<div></div>
												<div id="search_suggest${s.index }5"></div> <input
												type="hidden" id="neonateDiseaseCode${s.index }5"
												name="obstetricalRecords[${s.index }].neonateDiseaseCode5"
												value="${ obestetricalRecord.neonateDiseaseCode5}">
												<input type="hidden" id="neonateDiseaseName${s.index }5"
												name="obstetricalRecords[${s.index }].neonateDiseaseName5"
												value="${obestetricalRecord.neonateDiseaseName5}"></td>
										</tr>
										<tr>
											<td align="left" class="tdLabel_7">接生者</td>
											<td align="left" colspan="5"><input type="text"
												name="obstetricalRecords[${s.index }].midwife"
												value="${obestetricalRecord.midwife}" class="input_box"
												style="width:150px">
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</c:forEach>

					</div>
				</form>
			</div>
			<!--抗菌药物-->
			<div role="tabpanel" class="tab-pane" id="antibacterial">
				<form method="" action="">
					<table width="100%" cellspacing="0" border="0" cellpadding="0">
						<tbody>
							<tr>
								<td colspan="9" style="border:none;">
									<div style="float:right">
										<input type="button" value="删除" class="int"> <input
											type="button" value="新增" class="int"> <input
											type="button" value="保存" class="int"> &nbsp;
									</div></td>
							</tr>
						</tbody>
					</table>
					<div>
						<ul class="bg_danlanColor margin0 clearfix">
							<li class="menuli selected">记录1</li>
						</ul>
					</div>
					<div class="content">
						<div class="layout">
							<table width="100%" cellspacing="0" cellpadding="0">
								<tbody>
									<tr>
										<td align="left" class="tdLabel_7">抗菌用药目的</td>
										<td align="left"><select name="tbnkjyw.kjyymd">
												<option value="">=请选择=</option>
										</select></td>
										<td align="left" class="tdLabel_7">抗菌用药方案</td>
										<td align="left"><select name="tbnkjyw.kjyyfa">
												<option value="">=请选择=</option>
										</select></td>
										<td align="left" class="tdLabel_7">病原体</td>
										<td align="left"><select name="tbnkjyw.byt">
												<option value="">=请选择=</option>
										</select></td>
									</tr>
									<tr>
										<td align="left" class="tdLabel_7">开始用药时间</td>
										<td align="left"><input type="text"
											name="tbnkjyw.yystarttime"
											onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
											value="" class="input_box" style="width: 150px"></td>
										<td align="left" class="tdLabel_7">结束用药时间</td>
										<td align="left"><input type="text"
											name="tbnkjyw.yyendtime"
											onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
											value="" class="input_box" style="width: 150px"></td>
										<td align="left" class="tdLabel_7">消耗量</td>
										<td align="left"><input type="text" name="tbnkjyw.yyxhl"
											class="input_box" style="width: 150px" value=""></td>
									</tr>
									<tr>
										<td align="left" width="17%" class="tdLabel_7">出血量≥1500毫升追加1剂</td>
										<td align="left" width="18%"><input type="radio"
											class="radio_cl" name="kjyw-cxl-1505206893919-0" value="1">是&nbsp;&nbsp;<input
											type="radio" class="radio_cl" name="kjyw-cxl-1505206893919-0"
											value="0">否</td>
										<td align="left" width="18%" class="tdLabel_7">手术时间超过3小时追加1剂</td>
										<td align="left" width="16%"><input type="radio"
											class="radio_cl" name="kjyw-ssc3j1j-1505206893919-0"
											value="1">是&nbsp;&nbsp;<input type="radio"
											class="radio_cl" name="kjyw-ssc3j1j-1505206893919-0"
											value="0">否</td>
										<td align="left" width="8%" class="tdLabel_7">医源性检测</td>
										<td align="left" width="18%"><input type="radio"
											class="radio_cl" name="kjyw-yyxjc-1505206893919-0" value="1">是&nbsp;&nbsp;<input
											type="radio" class="radio_cl"
											name="kjyw-yyxjc-1505206893919-0" value="0">否</td>
									</tr>
									<tr class="dark2">
										<td class="tdLabel_7">用药分类</td>
										<td><select style="width:95%">
												<option value="">=请选择=</option>
										</select></td>
										<td class="tdLabel_7">病原学检测标本</td>
										<td colspan="3"><select style="width:80%">
												<option value="">=请选择=</option>
										</select></td>
									</tr>
								</tbody>
							</table>
						</div>

					</div>
				</form>
			</div>
			<!--医院感染-->
			<div role="tabpanel" class="tab-pane" id="hospitalInfection">
				<form method="post"
					action="${basePath}/medrecord/medrecordHomePageManageOfHospitalInfectionInfo">
					<input type="hidden" name="firstGuid"
						value="${hospitalizationNote.first_level_medical_guid}"> <input
						type="hidden" id="hospitalInfectionCount"
						value="${fn:length(hospitalInfectionInfo.hospitalInfects)}">
					<table width="100%" cellspacing="0" border="0" cellpadding="0"
						id="hospitalInfectionTable">
						<tbody>
							<tr>
								<td colspan="6" style="border:none;">
									<div style="float:right">
										<input type="submit" value="保存" class="btn"> <input
											type="button" id="add_hospitalInfect" value="新增"
											onclick="add_hospitalInfection()" class="btn"> &nbsp;
									</div></td>
							</tr>
							<tr>
								<td width="5%">填报日期</td>
								<td width="5%">感染时间</td>
								<td width="12%">病原体</td>
								<td width="8%">病原学检测标本</td>
								<td width="13%">易感因素</td>
								<td width="5%">操作</td>
							</tr>
							<c:forEach var="hospitalInfect"
								items="${hospitalInfectionInfo.hospitalInfects }" varStatus="s">
								<tr>
									<td><input type="text"
										name="hospitalInfects[${s.index }].reportDate"
										value='<fmt:formatDate value="${hospitalInfect.reportDate}" pattern="yyyy-MM-dd"/>'
										onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
										class="input_box" style="width: 150px"></td>
									<td><input type="text"
										name="hospitalInfects[${s.index }].infectDate"
										value='<fmt:formatDate value="${hospitalInfect.infectDate}" pattern="yyyy-MM-dd"/>'
										onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
										class="input_box" style="width: 150px">
									</td>
									<td><select
										name="hospitalInfects[${s.index }].pathogenyId"
										style="width:160px;">
											<option value="">=请选择=</option>
											<c:forEach var="pathogeny"
												items="${basicInfos['pathogenyList'] }">
												<c:choose>
													<c:when test="${pathogeny.id==hospitalInfect.pathogenyId }">
														<option value="${pathogeny.id }" selected="selected">${pathogeny.name
															}</option>
													</c:when>
													<c:otherwise>
														<option value="${pathogeny.id }">${pathogeny.name
															}</option>
													</c:otherwise>
												</c:choose>
											</c:forEach>
									</select> <input type="hidden"
										name="hospitalInfects[${s.index }].pathogenyName"
										value="${hospitalInfect.pathogenyName}" /></td>
									<td><select
										name="hospitalInfects[${s.index }].pathogenyExemplarId"
										style="width:150px;">
											<option value="">=请选择=</option>
											<c:forEach var="pathogenyExemplar"
												items="${basicInfos['pathogenyExemplarList'] }">
												<c:choose>
													<c:when
														test="${pathogenyExemplar.id==hospitalInfect.pathogenyExemplarId }">
														<option value="${pathogenyExemplar.id }"
															selected="selected">${pathogenyExemplar.name }</option>
													</c:when>
													<c:otherwise>
														<option value="${pathogenyExemplar.id }">${pathogenyExemplar.name
															}</option>
													</c:otherwise>
												</c:choose>
											</c:forEach>
									</select> <input type="hidden"
										name="hospitalInfects[${s.index }].pathogenyExemplarName"
										value="${hospitalInfect.pathogenyExemplarName}" /></td>
									<td><select
										name="hospitalInfects[${s.index }].predisposingFactorId"
										style="width:95%">
											<option value="">=请选择=</option>
											<c:forEach var="predisposingFactor"
												items="${basicInfos['predisposingFactorList'] }">
												<c:choose>
													<c:when
														test="${predisposingFactor.id==hospitalInfect.predisposingFactorId }">
														<option value="${predisposingFactor.id }"
															selected="selected">${predisposingFactor.name }</option>
													</c:when>
													<c:otherwise>
														<option value="${predisposingFactor.id }">${predisposingFactor.name
															}</option>
													</c:otherwise>
												</c:choose>
											</c:forEach>
									</select> <input type="hidden"
										name="hospitalInfects[${s.index }].predisposingFactorName"
										value="${hospitalInfect.predisposingFactorName}" /></td>
									<td><a <c:if test="${s.index==0 }">hidden="true"</c:if>
										class="int" id="deleteHospitalInfection${s.index }"
										onclick="del(this)"> 删除</a></td>
								</tr>

							</c:forEach>

						</tbody>
					</table>

				</form>
			</div>

			<!--住院费用-->
			<div role="tabpanel" class="tab-pane" id="hospitalCharge">
				<form method="post"
					action="${basePath }/medrecord/medrecordHomePageManageOfHospitalizationCost">
					<input type="hidden" name="firstGuid"
						value="${hospitalizationNote.first_level_medical_guid}">
					<table width="100%" cellspacing="0" cellpadding="0">
						<tbody>
							<tr>
								<td colspan="9" style="border:none;">
									<div style="float:right">
										<input type="submit" value="保存" class="int"> &nbsp;
									</div></td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7" style="width:15%">总费用</td>
								<td align="left"><input type="text" name="totalCost"
									class="input_box" style="width:150px"
									value="${hospitalizationCost.totalCost}">
								</td>
								<td align="left" class="tdLabel_7">自付金额</td>
								<td align="left" colspan="3"><input type="text"
									name="selfCost" class="input_box" style="width:150px"
									value="${hospitalizationCost.selfCost}">
								</td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7">床位费</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="bedTotalCost" class="input_box" style="width:150px"
									value="${hospitalizationCost.bedTotalCost}">
								</td>
								<td align="left" class="tdLabel_7">西药费</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="westernMedicineTotalCost" class="input_box"
									style="width:150px"
									value="${hospitalizationCost.westernMedicineTotalCost}">
								</td>
								<td align="left" class="tdLabel_7">中药费</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="chineseMedicineTotalCost" class="input_box"
									style="width:150px"
									value="${hospitalizationCost.chineseMedicineTotalCost}">
								</td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7">检验费</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="examinationTotalCost" class="input_box"
									style="width:150px"
									value="${hospitalizationCost.examinationTotalCost}">
								</td>
								<td align="left" class="tdLabel_7">放射费</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="radiologyTotalCost" class="input_box" style="width:150px"
									value="${hospitalizationCost.radiologyTotalCost}">
								</td>
								<td align="left" class="tdLabel_7">特检费</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="specialExaminationTotalCost" class="input_box"
									style="width:150px"
									value="${hospitalizationCost.specialExaminationTotalCost}">
								</td>
							</tr>

							<tr>
								<td align="left" class="tdLabel_7">治疗费</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="cureTotalCost" class="input_box" style="width:150px"
									value="${hospitalizationCost.cureTotalCost}">
								</td>
								<td align="left" class="tdLabel_7">输血费</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="transfusionBloodTotalCost" class="input_box"
									style="width:150px"
									value="${hospitalizationCost.transfusionBloodTotalCost}">
								</td>
								<td align="left" class="tdLabel_7">手术费</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="surgeryTotalCost" class="input_box" style="width:150px"
									value="${hospitalizationCost.surgeryTotalCost}"></td>
							</tr>
							<tr>
								<td align="left" class="tdLabel_7">护理费</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="nurseTotalCost" class="input_box" style="width:150px"
									value="${hospitalizationCost.nurseTotalCost}">
								</td>
								<td align="left" class="tdLabel_7">其他费</td>
								<td align="left" class="tdLabel_8"><input type="text"
									name="otherTotalCost" class="input_box" style="width:150px"
									value="${hospitalizationCost.otherTotalCost}">
								</td>

							</tr>
						</tbody>
					</table>
				</form>
			</div>
		</div>
		<div hidden="true" id="template_div">
			<table id="pressureSoreRecordTemplateTable">
				<tr id="pressureSoreRecordTemplateTr">
					<td><input name="pressureSoreRecords[0].occurDateTime"
						value="" type="text"
						onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
						class="input_box"></td>
					<td><select name="pressureSoreRecords[0].pressureSoreCradleId" data-select="pressureSoreCradle">
							<option value="">---请选择---</option>
							<c:forEach var="pressureSoreCradle"
								items="${basicInfos['pressureSoreCradles'] }" varStatus="index">
								<option value="${pressureSoreCradle.id }">${pressureSoreCradle.name}</option>
							</c:forEach>

					</select>
					<input type="hidden" data-select="pressureSoreCradleNameHidden" name="pressureSoreRecords[0].pressureSoreCradleName">
					</td>
					<td><select name="pressureSoreRecords[0].pressureSorePhaseId" data-select="pressureSorePhase">
							<option value="">---请选择---</option>
							<c:forEach var="pressureSorePhase"
								items="${basicInfos['pressureSorePhases'] }" varStatus="index">
								<option value="${pressureSorePhase.id }">${pressureSorePhase.name}</option>
							</c:forEach>
					</select>
					<input type="hidden" data-select="pressureSorePhaseNameHidden" name="pressureSoreRecords[0].pressureSorePhaseName">
					</td>
					<td><select name="pressureSoreRecords[0].pressureSorePartIds"
						multiple="multiple" data-select-multi="pressureSorePart">

							<c:forEach var="pressureSorePart"
								items="${basicInfos['pressureSoreParts'] }" varStatus="index">
								<option value="${pressureSorePart.id }">${pressureSorePart.name}</option>
							</c:forEach>
					</select>
					
					<input type="hidden" data-select-multi="pressureSorePartNamesHidden" name="pressureSoreRecords[0].pressureSorePartNames">
					</td>
					<td><input name="pressureSoreRecords[0].registerDateTime"
						value="" type="text"
						onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
						class="input_box"></td>
					<td align="center"><a class="int"
						onclick="delete_pressureSoreRecord(this)">删除</a></td>
				</tr>
			</table>

			<!--过敏药物模版-->
			<table id="drugAllergyRecordTemplateTable">

				<tr id="drugAllergyRecordTemplateTr">
					<td><select name="drugAllergyRecords[0].drugAllergyTypeId"
						data-select="drugAllergyType" style="width:80%">
							<option value="">---请选择---</option>
							<c:forEach items="${basicInfos['drugAllergyTypes'] }"
								var="drugAllergyType">
								<option value="${drugAllergyType.id }">${drugAllergyType.name
									}</option>
							</c:forEach>
					</select> <input type="hidden" data-select="drugAllergyTypeNameHidden"
						name="drugAllergyRecords[0].drugAllergyTypeName" value="">
					</td>
					<td><input name="drugAllergyRecords[0].drugAllergyName"
						value="" class="input_box" style="width:500px"></td>
					<td align="center"><a class="int"
						onclick="delete_drugAllergyRecord(this)">删除 </a></td>
				</tr>
			</table>
			<!-- 护理记录模版 -->
			<table id="nurseRecordTemplateTable">
				<tr id="nurseRecordTemplateTr" class="dark">
					<td><input name="nurseRecords[0].nurseDateTime" value=""
						type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
						class="input_box"></td>
					<td><input name="nurseRecords[0].nurseContent" type="text"
						value="" class="input_box"></td>
					<td><input name="nurseRecords[0].nurserSignature"
						class="input_box" type="text" value=""></td>
					<td align="center"><a class="int"
						onclick="delete_nurseRecord(this)">删除</a></td>
				</tr>
			</table>
			<!-- 重症监护模版 -->

			<ul class="bg_danlanColor margin0 clearfix" id="template_icu_ul">
				<li class="selected" data-index="0">记录1</li>
			</ul>

			<div class="layout" id="template_icu_records_div">
				<table width="100%" cellspacing="0" border="0" cellpadding="0">
					<tbody>
						<tr>
							<td class="tdLabel_7" width="14%">ICU类型</td>
							<td width="22%"><select
								name="intensiveCareRecords[0].iCUTypeId" style="width:90%">

									<option value="">---请选择---</option>
									<c:forEach var="iCUType" items="${basicInfos['iCUTypes'] }">
										<option value="${iCUType.id }">${iCUType.name }</option>
									</c:forEach>
							</select> <input type="hidden" name="intensiveCareRecords[0].iCUTypeName" />
							</td>
							<td class="tdLabel_7" width="10%">进入时间</td>
							<td width="22%"><input type="text"
								name="intensiveCareRecords[0].inICUDateTime" value=""
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
								class="input_box"></td>
							<td class="tdLabel_7" width="10%">退出时间</td>
							<td width="22%"><input type="text"
								name="intensiveCareRecords[0].outICUDateTime" value=""
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
								class="input_box"></td>
						</tr>
						<tr>
							<td class="tdLabel_7">计划再次入住ICU</td>
							<td><input type="radio" class="radio_cl"
								name="intensiveCareRecords[0].reICUPlan" value="true">是
								<input type="radio" class="radio_cl"
								name="intensiveCareRecords[0].reICUPlan" value="false">否
							</td>
							<td class="tdLabel_7">APACHEII评分</td>
							<td><input type="text"
								name="intensiveCareRecords[0].apacheScore" value=""
								class="input_box" style="width: 150px">
							</td>
							<td class="tdLabel_7">患者死亡</td>
							<td><input type="radio" class="radio_cl"
								name="intensiveCareRecords[0].iCUDeath" value="1">是<input
								type="radio" class="radio_cl"
								name="intensiveCareRecords[0].iCUDeath" value="0">否</td>
						</tr>
						<tr>
							<td class="tdLabel_7">计划再次入住原因</td>
							<td colspan="5"><textarea
									name="intensiveCareRecords[0].reICUComment"
									style="width: 625px; height: 47px;"></textarea>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>



	</div>
</div>
<script type="text/javascript">
	$(function(){
		$("select[name='payTypeId']").change(function(){
			if($("select[name='payTypeId'] option:selected").val()!=""){
				var name=$("select[name='payTypeId'] option:selected").text();
				$("#payTypeName").val(name);
			}else{
				$("#payTypeName").val("");
			}
			
		});
		
		$("select[name='identityDocumentTypeId']").change(function(){
			if($("select[name='identityDocumentTypeId'] option:selected").val()!=""){
				var name=$("select[name='identityDocumentTypeId'] option:selected").text();
				$("#identityDocumentTypeName").val(name);
			}else{
				$("#identityDocumentTypeName").val("");
			}
			
		});
		
		$("select[name='sexId']").change(function(){
			if($("select[name='sexId'] option:selected").val()!=""){
				var name=$("select[name='sexId'] option:selected").text();
				$("#sexName").val(name);
			}else{
				$("#sexName").val("");
			}
			
		});
		
		
		$("select[name='nationalityId']").change(function(){
			if($("select[name='nationalityId'] option:selected").val()!=""){
				var name=$("select[name='nationalityId'] option:selected").text();
				$("#nationalityName").val(name);
			}else{
				$("#nationalityName").val("");
			}
			
		});
		
		$("select[name='nationId']").change(function(){
			if($("select[name='nationId'] option:selected").val()!=""){
				var name=$("select[name='nationId'] option:selected").text();
				$("#nationName").val(name);
			}else{
				$("#nationName").val("");
			}
			
		});
		
		$("select[name='professionId']").change(function(){
			if($("select[name='professionId'] option:selected").val()!=""){
				var name=$("select[name='professionId'] option:selected").text();
				$("#professionName").val(name);
			}else{
				$("#professionName").val("");
			}
			
		});
		
		$("select[name='marriageId']").change(function(){
			if($("select[name='marriageId'] option:selected").val()!=""){
				var name=$("select[name='marriageId'] option:selected").text();
				$("#marriageName").val(name);
			}else{
				$("#marriageName").val("");
			}
			
		});
		
		$("select[name='relativeRelationId']").change(function(){
			if($("select[name='relativeRelationId'] option:selected").val()!=""){
				var name=$("select[name='relativeRelationId'] option:selected").text();
				$("#relativeRelationName").val(name);
			}else{
				$("#relativeRelationName").val("");
			}
			
		});
		
		$("select[name='inHospitalTypeId']").change(function(){
			if($("select[name='inHospitalTypeId'] option:selected").val()!=""){
				var name=$("select[name='inHospitalTypeId'] option:selected").text();
				$("#inHospitalTypeName").val(name);
			}else{
				$("#inHospitalTypeName").val("");
			}
			
		});
		
		var shiftToUnitIdHiddenValue = $("#shiftToUnitIdHidden").val();
		if(shiftToUnitIdHiddenValue !=""){
			$("select[name='shiftToUnitId']").val(shiftToUnitIdHiddenValue)
		}
		
		$("select[name='shiftToUnitId']").change(function(){
			var obj = $(this);
			var value = obj.val();
			var text = obj.find("option:selected").text();
			if(value == ""){
				text = "";
			}
			$("#"+obj.attr("id")+"NameHidden").val(text)
			
		});
		
		
		var rollOutUnitIdHiddenValue = $("#rollOutUnitIdHidden").val();
		if(rollOutUnitIdHiddenValue !=""){
			$("select[name='rollOutUnitId']").val(rollOutUnitIdHiddenValue)
		}
		
		$("select[name='rollOutUnitId']").change(function(){
			var obj = $(this);
			var value = obj.val();
			var text = obj.find("option:selected").text();
			if(value == ""){
				text = "";
			}
			$("#"+obj.attr("id")+"NameHidden").val(text)
			
		});
		
		
		var rehospitalizationAimIdHiddenValue = $("#rehospitalizationAimIdHidden").val();
		if(rehospitalizationAimIdHiddenValue !=""){
			$("select[name='rehospitalizationAimId']").val(rehospitalizationAimIdHiddenValue)
		}
		
		$("select[name='rehospitalizationAimId']").change(function(){
			var obj = $(this);
			var value = obj.val();
			var text = obj.find("option:selected").text();
			if(value == ""){
				text = "";
			}
			$("#"+obj.attr("id")+"NameHidden").val(text)
			
		});
		
		
		
		$("select[name='inHospitalStateId']").change(function(){
			if($("select[name='inHospitalStateId'] option:selected").val()!=""){
				var name=$("select[name='inHospitalStateId'] option:selected").text();
				$("#inHospitalStateName").val(name);
			}else{
				$("#inHospitalStateName").val("");
			}
			
		});
		
		$("select[name='inDeptId']").change(function(){
			if($("select[name='inDeptId'] option:selected").val()!=""){
				var name=$("select[name='inDeptId'] option:selected").text();
				$("#inDeptName").val(name);
			}else{
				$("#inDeptName").val("");
			}
			
		});
		
		$("select[name='outDeptId']").change(function(){
			if($("select[name='outDeptId'] option:selected").val()!=""){
				var name=$("select[name='outDeptId'] option:selected").text();
				$("#outDeptName").val(name);
			}else{
				$("#outDeptName").val("");
			}
			
		});
		
		
		$("select[name='outHospitalTypeId']").change(function(){
			if($("select[name='outHospitalTypeId'] option:selected").val()!=""){
				var name=$("select[name='outHospitalTypeId'] option:selected").text();
				$("#outHospitalTypeName").val(name);
			}else{
				$("#outHospitalTypeName").val("");
			}
			
		});
		
		$("select[name='dealthReasonId']").change(function(){
			if($("select[name='dealthReasonId'] option:selected").val()!=""){
				var name=$("select[name='dealthReasonId'] option:selected").text();
				$("#dealthReasonName").val(name);
			}else{
				$("#dealthReasonName").val("");
			}
			
		});
		/**治疗信息*/
		$("select[name='bloodTypeId']").change(function(){
			if($("select[name='bloodTypeId'] option:selected").val()!=""){
				var bloodTypeName=$("select[name='bloodTypeId'] option:selected").text();
				$("input[name='bloodTypeName']").val(bloodTypeName);
			}else{
				$("input[name='bloodTypeName']").val("");
			}
			
		});
		$("select[name='rhBloodTypeId']").change(function(){
			if($("select[name='rhBloodTypeId'] option:selected").val()!=""){
				var name=$("select[name='rhBloodTypeId'] option:selected").text();
				$("input[name='rhBloodTypeName']").val(name);
			}else{
				$("input[name='rhBloodTypeName']").val("");
			}
			
		});
		changeDiseaseDiagnos();
		changeOperation();
		changeBloodTypeRecord();
		changeMedicalOffice();
		changeObstetricalRecord();
		changeHospitalInfection();
		
		var outpatientAndDischargeDiagCodeHiddenValue = $("#outpatientAndDischargeDiagCodeHidden").val();
		if(outpatientAndDischargeDiagCodeHiddenValue !=""){
			$("select[name='outpatientAndDischargeDiagCode']").val(outpatientAndDischargeDiagCodeHiddenValue)
		}
		
		$("select[name='outpatientAndDischargeDiagCode']").change(function(){
			var obj = $(this);
			var value = obj.val();
			var text = obj.find("option:selected").text();
			if(value == ""){
				text = "";
			}
			$("#"+obj.attr("id")+"NameHidden").val(text)
			
		});
		
		var outpatientAndInpatientDiagCodeHiddenValue = $("#outpatientAndInpatientDiagCodeHidden").val();
		if(outpatientAndInpatientDiagCodeHiddenValue !=""){
			$("select[name='outpatientAndInpatientDiagCode']").val(outpatientAndInpatientDiagCodeHiddenValue)
		}
		
		$("select[name='outpatientAndInpatientDiagCode']").change(function(){
			var obj = $(this);
			var value = obj.val();
			var text = obj.find("option:selected").text();
			if(value == ""){
				text = "";
			}
			$("#"+obj.attr("id")+"NameHidden").val(text)
			
		});
		
		var beforeOpsAndAfterOpsDiagCodeHiddenValue = $("#beforeOpsAndAfterOpsDiagCodeHidden").val();
		if(beforeOpsAndAfterOpsDiagCodeHiddenValue !=""){
			$("select[name='beforeOpsAndAfterOpsDiagCode']").val(beforeOpsAndAfterOpsDiagCodeHiddenValue)
		}
		
		$("select[name='beforeOpsAndAfterOpsDiagCode']").change(function(){
			var obj = $(this);
			var value = obj.val();
			var text = obj.find("option:selected").text();
			if(value == ""){
				text = "";
			}
			$("#"+obj.attr("id")+"NameHidden").val(text)
			
		});
		
		var clinicalAndPathologDiagCodeHiddenValue = $("#clinicalAndPathologDiagCodeHidden").val();
		if(clinicalAndPathologDiagCodeHiddenValue !=""){
			$("select[name='clinicalAndPathologDiagCode']").val(clinicalAndPathologDiagCodeHiddenValue)
		}
		
		$("select[name='clinicalAndPathologDiagCode']").change(function(){
			var obj = $(this);
			var value = obj.val();
			var text = obj.find("option:selected").text();
			if(value == ""){
				text = "";
			}
			$("#"+obj.attr("id")+"NameHidden").val(text)
			
		});
		
		var radiologAndPathologDiagCodeHiddenValue = $("#radiologAndPathologDiagCodeHidden").val();
		if(radiologAndPathologDiagCodeHiddenValue !=""){
			$("select[name='radiologAndPathologDiagCode']").val(radiologAndPathologDiagCodeHiddenValue)
		}
		
		$("select[name='radiologAndPathologDiagCode']").change(function(){
			var obj = $(this);
			var value = obj.val();
			var text = obj.find("option:selected").text();
			if(value == ""){
				text = "";
			}
			$("#"+obj.attr("id")+"NameHidden").val(text)
			
		});
		
		$("select[name$='iCUTypeId']").change(function(){
			var obj = $(this);
			var value = obj.val();
			var text = obj.find("option:selected").text();
			if(value == ""){
				text = "";
			}
			obj.siblings("input[name$='iCUTypeName']").val(text);
			/* $("#"+obj.attr("id")+"NameHidden").val(text) */
			
		});
		
		/**打印*/
		$("#print").click(function(){
			window.open("${basePath}/medrecord/tobeHospitalizedHomePage?firstGuid="+$("input[name='firstGuid']").val(), "打印",
					'height=600,width=820,top=0,left=200,toolbar=no,menubar=no,scrollbars=no');
		});
	});
	
	
	function changeDiseaseDiagnos(){
		/**疾病诊断*/
		var count = $("#diseaseDiagnosCount").val();
		for(var i=0;i<count;i++){
			
			(function(i){ 
				$("select[name='hospitalizationDiagnosis["+i+"].diagnoseTypeId']").change(function(){
					if($("select[name='hospitalizationDiagnosis["+i+"].diagnoseTypeId'] option:selected").val()!=""){
						var name=$("select[name='hospitalizationDiagnosis["+i+"].diagnoseTypeId'] option:selected").text();
						$("input[name='hospitalizationDiagnosis["+i+"].diagnoseTypeName']").val(name);
					}else{
						$("input[name='hospitalizationDiagnosis["+i+"].diagnoseTypeName']").val("");
					}
					
					});
					$("select[name='hospitalizationDiagnosis["+i+"].inHospitalDiseaseStateId']").change(function(){
						if($("select[name='hospitalizationDiagnosis["+i+"].inHospitalDiseaseStateId'] option:selected").val()!=""){
							var name=$("select[name='hospitalizationDiagnosis["+i+"].inHospitalDiseaseStateId'] option:selected").text();
							$("input[name='hospitalizationDiagnosis["+i+"].inHospitalDiseaseStateName']").val(name);
						}else{
							$("input[name='hospitalizationDiagnosis["+i+"].inHospitalDiseaseStateName']").val("");
						}
	
					});
					$("select[name='hospitalizationDiagnosis["+i+"].treatmentResultId']").change(function(){
						if($("select[name='hospitalizationDiagnosis["+i+"].treatmentResultId'] option:selected").val()!=""){
							var name=$("select[name='hospitalizationDiagnosis["+i+"].treatmentResultId'] option:selected").text();
							$("input[name='hospitalizationDiagnosis["+i+"].treatmentResultName']").val(name);
						}else{
							$("input[name='hospitalizationDiagnosis["+i+"].treatmentResultName']").val("");
						}
						
					});
            })(i);
			
			
		}
	}
	
	
	function changeBloodTypeRecord(){
		/**输血记录*/
		var bloodRecordCount = $("#bloodTransfuseCount").val();
		
		for(var i=0;i<bloodRecordCount;i++){
			(function(i){
				$("select[name='bloodTransfusions["+i+"].bloodTypeId']").change(function(){
					if($("select[name='bloodTransfusions["+i+"].bloodTypeId'] option:selected").val()!=""){
						var name=$("select[name='bloodTransfusions["+i+"].bloodTypeId'] option:selected").text();
						$("input[name='bloodTransfusions["+i+"].bloodTypeName']").val(name);
					}else{
						$("input[name='bloodTransfusions["+i+"].bloodTypeName']").val("");
					}
					
				});
			})(i);
		}
	}
	
	function changeMedicalOffice(){
		/**转科记录*/
		var changeOfficeCount = $("#changeOfficeCount").val();
		for(var i=0;i<changeOfficeCount;i++){
			(function(i){
				$("select[name='hospitalizationChangeOffices["+i+"].inOfficeId']").change(function(){
					if($("select[name='hospitalizationChangeOffices["+i+"].inOfficeId'] option:selected").val()!=""){
						var name=$("select[name='hospitalizationChangeOffices["+i+"].inOfficeId'] option:selected").text();
						$("input[name='hospitalizationChangeOffices["+i+"].inOfficeName']").val(name);
					}else{
						$("input[name='hospitalizationChangeOffices["+i+"].inOfficeName']").val("");
					}
					
				});
				
				$("select[name='hospitalizationChangeOffices["+i+"].outOfficeId']").change(function(){
					if($("select[name='hospitalizationChangeOffices["+i+"].outOfficeId'] option:selected").val()!=""){
						var name=$("select[name='hospitalizationChangeOffices["+i+"].outOfficeId'] option:selected").text();
						$("input[name='hospitalizationChangeOffices["+i+"].outOfficeName']").val(name);
					}else{
						$("input[name='hospitalizationChangeOffices["+i+"].outOfficeName']").val("");
					}
					
				});
			})(i);
		}
	}
	
	
	/**医院感染*/
	function changeHospitalInfection(){
		var infectionCount = $("#hospitalInfectionCount").val();
		for(var i=0;i<infectionCount;i++){
			(function(i){
				$("select[name='hospitalInfects["+i+"].pathogenyId']").change(function(){
					if($("select[name='hospitalInfects["+i+"].pathogenyId'] option:selected").val()!=""){
						var name=$("select[name='hospitalInfects["+i+"].pathogenyId'] option:selected").text();
						$("input[name='hospitalInfects["+i+"].pathogenyName']").val(name);
					}else{
						$("input[name='hospitalInfects["+i+"].pathogenyName']").val("");
					}
					
				});
				
				$("select[name='hospitalInfects["+i+"].pathogenyExemplarId']").change(function(){
					if($("select[name='hospitalInfects["+i+"].pathogenyExemplarId'] option:selected").val()!=""){
						var name=$("select[name='hospitalInfects["+i+"].pathogenyExemplarId'] option:selected").text();
						$("input[name='hospitalInfects["+i+"].pathogenyExemplarName']").val(name);
					}else{
						$("input[name='hospitalInfects["+i+"].pathogenyExemplarName']").val("");
					}
					
				});
				
				$("select[name='hospitalInfects["+i+"].predisposingFactorId']").change(function(){
					if($("select[name='hospitalInfects["+i+"].predisposingFactorId'] option:selected").val()!=""){
						var name=$("select[name='hospitalInfects["+i+"].predisposingFactorId'] option:selected").text();
						$("input[name='hospitalInfects["+i+"].predisposingFactorName']").val(name);
					}else{
						$("input[name='hospitalInfects["+i+"].predisposingFactorName']").val("");
					}
					
				});
			})(i);
		}
	}
</script>